Skip to content

Logging

AntonIT99 edited this page Oct 5, 2026 · 1 revision

Logging

Flan's Mod Ultimate writes its main-module messages through one logger named com.flansmodultimate. After mod logging is initialized, messages also go to:

  • logs/flansmodultimate.log: INFO, WARN and ERROR messages.
  • logs/flansmodultimate-debug.log: DEBUG and TRACE messages.

The files are recreated when mod logging initializes for a new game or server session. Messages also continue through Minecraft's normal logging configuration. Entries use the shared logger name rather than individual Java class names.

Development

Use com.flansmodultimate.util.FlansLog.log in the main module. This standalone holder depends only on SLF4J, so logging does not initialize mod registries or client classes and can be used in unit tests and standalone content utilities. Internal callers formerly using FlansMod.log must use FlansLog.log. The exception-formatting helper LogUtils.logErrorWithoutStacktrace also uses the shared logger.

Clone this wiki locally