apache-karafkaraf

karaf log level for a bundle


How do I set a different log level for a specific bundle from karaf> prompt?

log:set TRACE sets TRACE level logging for all. I want INFO/DEBUG for ROOT and TRACE level logging for a specific bundle.


Solution

  • You can't from prompt. For this you'll need to alter the org.ops4j.pax.logging.cfg file. Either by altering the file directly or by using the config:* commands.