You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Steinar Bang <sb...@dod.no> on 2024/11/10 07:28:02 UTC
Looking for shiro debug logging config example in karaf
Does anyone have a piece of config that will let me switch on log level
debug for shiro only, inside karaf?
Shiro uses slf4j and I couldn't find any slf4j settings to tweak in the
etc directory of karaf 4.4.6.
The closest I got were the log4j settings of org.ops4j.pax.logging.cfg
and I have no idea how the shiro log will appear there...? (if at all...?)
Thanks!
- Steinar
Re: Looking for shiro debug logging config example in karaf
Posted by Steinar Bang <sb...@dod.no>.
>>>>> Steinar Bang <sb...@dod.no>:
> Does anyone have a piece of config that will let me switch on log level
> debug for shiro only, inside karaf?
> Shiro uses slf4j and I couldn't find any slf4j settings to tweak in the
> etc directory of karaf 4.4.6.
> The closest I got were the log4j settings of org.ops4j.pax.logging.cfg
> and I have no idea how the shiro log will appear there...? (if at all...?)
Adding this to etc/org.ops4j.pax.logging.cfg of karaf 4.4.6, seems to
work:
# Shiro logger
log4j2.logger.shiro.name = org.apache.shiro
log4j2.logger.shiro.level = DEBUG
With this in place, I get shiro debug log messages in karaf.log