The default logging configuration defines the following appenders:
-
the console appender is disabled by default. If you plan to run Karaf in server mode only (i.e. with the locale console disabled), you can turn on this appender on by adding it to the list of configured appenders using the
log4j2.rootLogger.appenderRef
property. -
the
out
appender is the one enabled by default. It logs events to a number of rotating log files of a fixed size. You can easily change the parameters to control the number of files usingappender.rolling.strategy.max
and their sizeappender.rolling.policies.size.size
.