MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / setupLogger

Method setupLogger

The 5zig Mod/src/eu/the5zig/mod/The5zigMod.java:318–327  ·  view source on GitHub ↗

Configures the main logger.

()

Source from the content-addressed store, hash-verified

316 * Configures the main logger.
317 */
318 private static void setupLogger() {
319 LoggerContext ctx = (LoggerContext) LogManager.getContext(false);
320 org.apache.logging.log4j.core.config.Configuration config = ctx.getConfiguration();
321 LoggerConfig loggerConfig = config.getLoggerConfig(LogManager.ROOT_LOGGER_NAME);
322 if (DEBUG) {
323 loggerConfig.setLevel(Level.DEBUG);
324 }
325 ctx.updateLoggers();
326 logger.debug("Debug Mode ENABLED!");
327 }
328
329 /**
330 * @return the main configuration.

Callers 1

initMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected