Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 985
RRM Avatar asked Mar 16 '23 05:03

RRM


2 Answers

How about:

 log:set <level> <package>

typed in the console karaf.

like image 85
wykopowiedz1 Avatar answered Apr 07 '23 15:04

wykopowiedz1


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.

like image 33
Achim Nierbeck Avatar answered Apr 07 '23 13:04

Achim Nierbeck