You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Paul Spencer <pa...@mindspring.com> on 2020/12/10 17:05:10 UTC

Karaf 4.2.x Logging documentation is out of date

Karaf 4.2.x

The current Logging documentation does not reflect the change to log4j2.
  http://karaf.apache.org/manual/latest/#_log

I found this when trying to configure log file rotation ever 5MB for 10 files.  Below are working configurations

***
* Karaf 3.x configuration
*    etc/org.ops4j.pax.logging.cfg
***
log4j.appender.out.maxFileSize=5MB
log4j.appender.out.maxBackupIndex=10

***
* Karaf 4.2.x configuration
*    etc/org.ops4j.pax.logging.cfg
***
log4j2.appender.rolling.policies.size.type = SizeBasedTriggeringPolicy
log4j2.appender.rolling.policies.size.size = 5MB
log4j2.appender.rolling.strategy.type = DefaultRolloverStrategy
log4j2.appender.rolling.strategy.max = 10


Should I file an issue?

Paul Spencer