Skip to main content

Changing the log levels

The default logging configuration sets the logging levels so that the log file will provide enough information to monitor the behavior of the runtime and provide clues about what caused a problem. However, the default configuration will not provide enough information to debug most problems. The most useful logger to change when trying to debug an issue with Karaf is the root logger. You will want to set its logging level to DEBUG in the org.ops4j.pax.logging.cfg file.

log4j2.rootLogger.level=DEBUG
...

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!