karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r961686 - /karaf/trunk/assembly/src/main/distribution/text/etc/org.ops4j.pax.logging.cfg
Date Thu, 08 Jul 2010 10:08:47 GMT
Author: gnodet
Date: Thu Jul  8 10:08:47 2010
New Revision: 961686

URL: http://svn.apache.org/viewvc?rev=961686&view=rev
Log:
KARAF-107: Improve default log configuration with a rolling file appender

Modified:
    karaf/trunk/assembly/src/main/distribution/text/etc/org.ops4j.pax.logging.cfg

Modified: karaf/trunk/assembly/src/main/distribution/text/etc/org.ops4j.pax.logging.cfg
URL: http://svn.apache.org/viewvc/karaf/trunk/assembly/src/main/distribution/text/etc/org.ops4j.pax.logging.cfg?rev=961686&r1=961685&r2=961686&view=diff
==============================================================================
--- karaf/trunk/assembly/src/main/distribution/text/etc/org.ops4j.pax.logging.cfg (original)
+++ karaf/trunk/assembly/src/main/distribution/text/etc/org.ops4j.pax.logging.cfg Thu Jul
 8 10:08:47 2010
@@ -27,11 +27,13 @@ log4j.appender.stdout.layout=org.apache.
 log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} | %-5.5p | %-16.16t | %-32.32c{1}
| %-32.32C %4L | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
 
 # File appender
-log4j.appender.out=org.apache.log4j.FileAppender
+log4j.appender.out=org.apache.log4j.RollingFileAppender
 log4j.appender.out.layout=org.apache.log4j.PatternLayout
 log4j.appender.out.layout.ConversionPattern=%d{ABSOLUTE} | %-5.5p | %-16.16t | %-32.32c{1}
| %-32.32C %4L | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
 log4j.appender.out.file=${karaf.data}/log/karaf.log
 log4j.appender.out.append=true
+log4j.appender.out.maxFileSize=1MB
+log4j.appender.out.maxBackupIndex=10
 
 # Sift appender
 log4j.appender.sift=org.apache.log4j.sift.MDCSiftingAppender



Mime
View raw message