Hi All,
I have below configuration in the config file org.ops4j.pax.logging.cfg

# Root logger
log4j.rootLogger=INFO, out, 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

Even if the log file reached 500Kb , it is not rolling to a new file
To make sure smx is reading this file in startup I modified 
log4j.appender.out.file=${karaf.base}/data/log/servicemix.log to
log4j.appender.out.file=${karaf.base}/data/log/servicemix_new.log
It created file as servicemix_new.log. It means it is able to read the
changes in config file

Not sure what else need to be done to make the rollingfileappender work
Please suggest

Thanks in advance

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

Reply via email to