[vlma-devel] commit: Log4j: add a console appender. (Adrien Grand )
git version control
git at videolan.org
Sun Sep 14 19:27:09 CEST 2008
vlma | branch: master | Adrien Grand <jpountz at videolan.org> | Sun Sep 14 19:29:32 2008 +0200| [f52c20dde92945d338b43a34225359efe8496994] | committer: Adrien Grand
Log4j: add a console appender.
> http://git.videolan.org/gitweb.cgi/vlma.git/?a=commit;h=f52c20dde92945d338b43a34225359efe8496994
---
vlma-distribution/src/conf/log4j.properties | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/vlma-distribution/src/conf/log4j.properties b/vlma-distribution/src/conf/log4j.properties
index ea1fc54..2d26036 100644
--- a/vlma-distribution/src/conf/log4j.properties
+++ b/vlma-distribution/src/conf/log4j.properties
@@ -1,24 +1,25 @@
# VLMa log4j configuration
-log4j.rootLogger=INFO,errorfile,warnfile,infofile
+log4j.rootLogger=INFO,console,errorfile,warnfile,infofile
-log4j.appender.errorfile=org.apache.log4j.RollingFileAppender
+log4j.appender.console=org.apache.log4j.ConsoleAppender
+log4j.appender.console.layout=org.apache.log4j.PatternLayout
+log4j.appender.console.layout.ConversionPattern=%d{ABSOLUTE} - %-5p - %m%n
+
+log4j.appender.errorfile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.errorfile.layout=org.apache.log4j.PatternLayout
log4j.appender.errorfile.layout.ConversionPattern=%d{ABSOLUTE} - %-5p - %m%n
log4j.appender.errorfile.File=${vlma.logs}/vlmad.error.log
-log4j.appender.errorfile.MaxBackupIndex=7
log4j.appender.errorfile.Threshold=ERROR
-log4j.appender.warnfile=org.apache.log4j.RollingFileAppender
+log4j.appender.warnfile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.warnfile.layout=org.apache.log4j.PatternLayout
log4j.appender.warnfile.layout.ConversionPattern=%d{ABSOLUTE} - %-5p - %m%n
log4j.appender.warnfile.File=${vlma.logs}/vlmad.warn.log
-log4j.appender.warnfile.MaxBackupIndex=7
log4j.appender.warnfile.Threshold=WARN
log4j.appender.infofile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.infofile.layout=org.apache.log4j.PatternLayout
log4j.appender.infofile.layout.ConversionPattern=%d{ABSOLUTE} - %-5p - %m%n
log4j.appender.infofile.File=${vlma.logs}/vlmad.info.log
-log4j.appender.infofile.MaxBackupIndex=7
log4j.appender.infofile.Threshold=INFO
More information about the vlma-devel
mailing list