dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #05787
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1825: Updated log4j.properties in dhis2-live to take advantage of Viets new audit functionality
------------------------------------------------------------
revno: 1825
committer: Bob Jolliffe <bobj@bobj-laptop>
branch nick: trunk
timestamp: Thu 2010-05-06 16:50:43 +0100
message:
Updated log4j.properties in dhis2-live to take advantage of Viets new audit functionality
modified:
dhis-live/src/main/resources/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-live/src/main/resources/log4j.properties'
--- dhis-live/src/main/resources/log4j.properties 2009-04-22 21:34:35 +0000
+++ dhis-live/src/main/resources/log4j.properties 2010-05-06 15:50:43 +0000
@@ -1,3 +1,5 @@
+# Configuration file for log4j
+
# Log to file setup
log4j.appender.file = org.apache.log4j.RollingFileAppender
log4j.appender.file.File = log/dhis.log
@@ -11,6 +13,16 @@
log4j.appender.console.layout = org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern = * %-5p %d{ABSOLUTE} %m (%F [%t])%n
+#Audit log level
+log4j.appender.AUDIT=org.apache.log4j.DailyRollingFileAppender
+log4j.appender.AUDIT.File= log/audit.log
+log4j.appender.AUDIT.DatePattern='.'yyyy-MM-dd
+log4j.appender.AUDIT.MaxFileSize = 100KB
+log4j.appender.AUDIT.MaxBackupIndex = 3
+log4j.appender.AUDIT.threshold=AUDIT_TRAIL#org.hisp.dhis.system.util.AuditLogLevel
+log4j.appender.AUDIT.layout=org.apache.log4j.PatternLayout
+log4j.appender.AUDIT.layout.ConversionPattern= * %-5p %d{ABSOLUTE} %m %n
+
# Categories (order: DEBUG, INFO, WARN, ERROR, FATAL)
log4j.rootCategory = WARN, console
-log4j.category.org.hisp.dhis = INFO,file
+log4j.category.org.hisp.dhis = INFO, AUDIT