mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-02-08 23:39:38 +03:00
[FEATURE] Disabling log4j.xml update while launchserver is running
This commit is contained in:
parent
2f4667f5a6
commit
1d63fbbd93
1 changed files with 1 additions and 0 deletions
|
@ -32,6 +32,7 @@ public void invoke(String... args) throws Exception {
|
|||
boolean value = Boolean.parseBoolean(args[0]);
|
||||
LoggerContext ctx = (LoggerContext) LogManager.getContext(false);
|
||||
Configuration config = ctx.getConfiguration();
|
||||
config.getWatchManager().setIntervalSeconds(-1);
|
||||
LoggerConfig loggerConfig = config.getLoggerConfig("pro.gravit");
|
||||
loggerConfig.setLevel(value ? Level.TRACE : Level.DEBUG);
|
||||
ctx.updateLoggers();
|
||||
|
|
Loading…
Reference in a new issue