From faf7f3c15170c26267c3f7a239fd82e61ec8ce15 Mon Sep 17 00:00:00 2001 From: jon-stumpf Date: Fri, 10 Oct 2014 02:19:30 -0400 Subject: Added capability to set log level. --- src/org/traccar/helper/Log.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/traccar/helper/Log.java b/src/org/traccar/helper/Log.java index a5e9f7594..7d8d24c21 100644 --- a/src/org/traccar/helper/Log.java +++ b/src/org/traccar/helper/Log.java @@ -48,7 +48,7 @@ public class Log { LogManager.resetConfiguration(); logger = Logger.getLogger(LOGGER_NAME); logger.addAppender(appender); - logger.setLevel(Level.ALL); + logger.setLevel(Level.toLevel(properties.getProperty("logger.level"), Level.ALL)); // Workaround for "Bug 745866 - (EDG-45) Possible netty logging config problem" InternalLoggerFactory.setDefaultFactory(new InternalLoggerFactory() { -- cgit v1.2.3 From 5692ad122a148a68fdf26fe0c35e06cbfbc32620 Mon Sep 17 00:00:00 2001 From: jon-stumpf Date: Fri, 10 Oct 2014 02:20:22 -0400 Subject: Updated existing configuration files to specify logger.level when logger.enable=true. Changed log level to INFO from ALL. --- default.cfg | 1 + setup/linux/traccar.cfg | 1 + setup/macosx/traccar.cfg | 1 + setup/windows/traccar.cfg | 1 + 4 files changed, 4 insertions(+) diff --git a/default.cfg b/default.cfg index a684f7631..32369a686 100644 --- a/default.cfg +++ b/default.cfg @@ -66,6 +66,7 @@ true + info /home/user/Documents/traccar/target/tracker-server.log diff --git a/setup/linux/traccar.cfg b/setup/linux/traccar.cfg index 74bb6a97f..75dd55356 100644 --- a/setup/linux/traccar.cfg +++ b/setup/linux/traccar.cfg @@ -65,6 +65,7 @@ true + info /opt/traccar/logs/tracker-server.log diff --git a/setup/macosx/traccar.cfg b/setup/macosx/traccar.cfg index 74bb6a97f..75dd55356 100644 --- a/setup/macosx/traccar.cfg +++ b/setup/macosx/traccar.cfg @@ -65,6 +65,7 @@ true + info /opt/traccar/logs/tracker-server.log diff --git a/setup/windows/traccar.cfg b/setup/windows/traccar.cfg index 781592f9e..379f50ecf 100644 --- a/setup/windows/traccar.cfg +++ b/setup/windows/traccar.cfg @@ -65,6 +65,7 @@ true + info [LOG] -- cgit v1.2.3