diff --git a/src/main/java/emu/grasscutter/Grasscutter.java b/src/main/java/emu/grasscutter/Grasscutter.java index 5551fc767..45b234f6e 100644 --- a/src/main/java/emu/grasscutter/Grasscutter.java +++ b/src/main/java/emu/grasscutter/Grasscutter.java @@ -109,6 +109,23 @@ public final class Grasscutter { log.setLevel(Level.DEBUG); log.debug("The logger is now running in debug mode."); + // Change loggers to debug. + ((Logger) LoggerFactory.getLogger("express")) + .setLevel(Level.INFO); + ((Logger) LoggerFactory.getLogger("org.quartz")) + .setLevel(Level.INFO); + ((Logger) LoggerFactory.getLogger("org.reflections")) + .setLevel(Level.INFO); + ((Logger) LoggerFactory.getLogger("org.eclipse.jetty")) + .setLevel(Level.INFO); + ((Logger) LoggerFactory.getLogger("org.mongodb.driver")) + .setLevel(Level.INFO); + } + case "-debugall" -> { + // Set the logger to debug. + log.setLevel(Level.DEBUG); + log.debug("The logger is now running in debug mode."); + // Change loggers to debug. ((Logger) LoggerFactory.getLogger("express")) .setLevel(Level.DEBUG);