I do not see any difference between my RollingFileAppender configuration and
the configuration you provided below.
For convenience I am  attaching my configuration again here.

I also tried with DailyRollingFileAppender, it created a file named
servicemix.log.2010-07-02 with 0 bytes. As today's date is 2010-07-06, the
filenamed should be servicemix.log.2010-07-06.

Anu suggestion is highly appreciated.
org.ops4j.pax.logging.cfg:

# Root logger
log4j.rootLogger=INFO, out,out1, osgi:VmLogAppender

# CONSOLE appender not used by default
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d |%d{ABSOLUTE} | %-5.5p |
%-16.16t | %-32.32c{1} | %-32.32C %4L | %m%n

# File appender
log4j.appender.out=org.apache.log4j.RollingFileAppender
#log4j.appender.out=org.apache.log4j.FileAppender
log4j.appender.out.layout=org.apache.log4j.PatternLayout
log4j.appender.out.layout.ConversionPattern=%d |%d{ABSOLUTE} | %-5.5p |
%-16.16t | %-32.32c{1} | %-32.32C %4L | %m%n
log4j.appender.out.file=${karaf.base}/data/log/servicemix_new.log
log4j.appender.out.MaxFileSize=500KB 
log4j.appender.out.MaxBackupIndex=10 
log4j.appender.out.append=true

 # File appender
 log4j.appender.out1=org.apache.log4j.DailyRollingFileAppender
 log4j.appender.out1.layout=org.apache.log4j.PatternLayout
 log4j.appender.out1.DatePattern='.'yyyy-MM-dd
 log4j.appender.out1.layout.ConversionPattern=%d{ABSOLUTE} | %-5.5p |
%-16.16t| %-32.32c{1} | %-32.32C %4L | %m%n
 log4j.appender.out1.file=${karaf.base}/data/log/servicemix.log
 log4j.appender.out1.append=true

-- 
View this message in context: 
http://servicemix.396122.n5.nabble.com/smx-4-2-RollingFileAppender-issue-tp512662p929859.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to