dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #36960
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18906: Log config. Making sure that log4j config is actually picked up by log4j instead of using default...
------------------------------------------------------------
revno: 18906
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2015-04-15 14:00:38 +0200
message:
Log config. Making sure that log4j config is actually picked up by log4j instead of using defaults. Cleaned up a bit.
modified:
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/WEB-INF/classes/log4j.properties
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/WEB-INF/classes/log4j.properties'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/WEB-INF/classes/log4j.properties 2014-10-22 07:06:45 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/WEB-INF/classes/log4j.properties 2015-04-15 12:00:38 +0000
@@ -1,40 +1,23 @@
-# Configuration file for log4j
-
-# Log to file setup
+# Configuration file for log4j, levels are DEBUG, INFO, WARN, ERROR, FATAL
+
+log4j.rootLogger = WARN, stdout
+
+# Std out appender
+log4j.appender.stdout = org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout = org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern = * %-5p %d{ISO8601} %m (%F [%t])%n
+
+# File appender
log4j.appender.file = org.apache.log4j.RollingFileAppender
log4j.appender.file.File = dhis.log
-log4j.appender.file.MaxFileSize = 100KB
+log4j.appender.file.MaxFileSize = 10MB
log4j.appender.file.MaxBackupIndex = 3
log4j.appender.file.layout = org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern = * %-5p %d{ISO8601} %m (%F [%t])%n
-# Log to console setup
-log4j.appender.console = org.apache.log4j.ConsoleAppender
-log4j.appender.console.layout = org.apache.log4j.PatternLayout
-log4j.appender.console.layout.ConversionPattern = * %-5p %d{ISO8601} %m (%F [%t])%n
-
-# Categories (order: DEBUG, INFO, WARN, ERROR, FATAL)
-
-# Default logging level and appender
-log4j.rootCategory = WARN, console
-
-# DHIS 2 logging level
+# Log levels
log4j.logger.org.hisp.dhis = INFO
-
-# SMS lib logging level
log4j.logger.smslib = INFO
-
-# Hibernate logging
-# log4j.logger.org.hibernate.engine.internal.StatefulPersistenceContext = ERROR
-# log4j.logger.org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog = ERROR
log4j.logger.org.hibernate.cache.ehcache.internal.strategy.AbstractReadWriteEhcacheAccessStrategy = ERROR
log4j.logger.org.hibernate.cache.ehcache.AbstractEhcacheRegionFactory = ERROR
-
-# Spring framework logging level
-log4j.logger.org.springframework = WARN
-log4j.logger.org.springframework.web = WARN
-log4j.logger.org.springframework.security = WARN
-
-# Hazelcast
-log4j.logger.com.hazelcast = WARN