aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper/Log.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/helper/Log.java')
-rw-r--r--src/org/traccar/helper/Log.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/org/traccar/helper/Log.java b/src/org/traccar/helper/Log.java
index d606c7355..890026b0c 100644
--- a/src/org/traccar/helper/Log.java
+++ b/src/org/traccar/helper/Log.java
@@ -159,7 +159,10 @@ public final class Log {
}
handler.setFormatter(new LogFormatter(config.getBoolean("logger.fullStackTraces")));
- handler.setLevel(Level.parse(config.getString("logger.level").toUpperCase()));
+
+ Level level = Level.parse(config.getString("logger.level").toUpperCase());
+ rootLogger.setLevel(level);
+ handler.setLevel(level);
rootLogger.addHandler(handler);
}