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.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() {