aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-08-20 20:18:21 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2013-08-20 20:18:21 +1200
commit569ee68a9219a33c2a4bdd2bc43dd4f8e8cdfed4 (patch)
tree4e656222dd63b98d19189de24146d70610d04a86 /src/org/traccar/helper
parentf03fbcc96e804c232a873d63eaf55060685ad3da (diff)
downloadtrackermap-server-569ee68a9219a33c2a4bdd2bc43dd4f8e8cdfed4.tar.gz
trackermap-server-569ee68a9219a33c2a4bdd2bc43dd4f8e8cdfed4.tar.bz2
trackermap-server-569ee68a9219a33c2a4bdd2bc43dd4f8e8cdfed4.zip
Fix packet logging
Diffstat (limited to 'src/org/traccar/helper')
-rw-r--r--src/org/traccar/helper/Log.java17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/org/traccar/helper/Log.java b/src/org/traccar/helper/Log.java
index f79fce79d..3c173f71e 100644
--- a/src/org/traccar/helper/Log.java
+++ b/src/org/traccar/helper/Log.java
@@ -32,19 +32,16 @@ public class Log {
private static Logger logger = null;
public static void setupLogger(Properties properties) throws IOException {
- if (Boolean.valueOf(properties.getProperty("logger.enable"))) {
- Layout layout = new PatternLayout(
- "%d{yyyy-MM-dd HH:mm:ss} %5p: %m%n");
+ Layout layout = new PatternLayout("%d{yyyy-MM-dd HH:mm:ss} %5p: %m%n");
- Appender appender = new DailyRollingFileAppender(
- layout, properties.getProperty("logger.file"), "'.'yyyyMMdd");
+ Appender appender = new DailyRollingFileAppender(
+ layout, properties.getProperty("logger.file"), "'.'yyyyMMdd");
- LogManager.resetConfiguration();
- logger = Logger.getLogger(LOGGER_NAME);
- logger.addAppender(appender);
- logger.setLevel(Level.DEBUG);
- }
+ LogManager.resetConfiguration();
+ logger = Logger.getLogger(LOGGER_NAME);
+ logger.addAppender(appender);
+ logger.setLevel(Level.ALL);
}
public static Logger getLogger() {