Class LoggerConfigurator
java.lang.Object
me.pauleff.common.LoggerConfigurator
Configures Logback console and rolling file logging for the application.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidconfigure(boolean verbose) Configures the root logger with console and daily rolling file appenders.
-
Method Details
-
configure
public static void configure(boolean verbose) Configures the root logger with console and daily rolling file appenders.Creates the log directory if needed, resets the Logback context, and attaches appenders. Verbose mode enables debug-level console output and includes the logger name in the console pattern.
- Parameters:
verbose-truefor debug console output with logger names;falsefor info console output without logger names
-