8
If my log4j.properties looks this
# General configuration
log4j.rootLogger = ERROR, ConsoleAppender
# Appender configuration
log4j.appender.ConsoleAppender = org.apache.log4j.ConsoleAppender
log4j.appender.ConsoleAppender.layout = org.apache.log4j.PatternLayout
log4j.appender.ConsoleAppender.layout.ConversionPattern = %5p (%c) %m%n
#Other Loggers
log4j.logger.com.foo=INFO
log4j.logger.com.foo.Bar=DEBUG
log4j.logger.org.springframework=INFO
Is there an easy way to get just the loggers com.foo, com.foo.Bar, root, and org.springframework. And not the specific classes that have been created and inherit the levels (I.E. com.foo.bar.Baz?
For my purposes I want to create an admin page that displays these loggers and their levels, but not ALL loggers, just the ones that have been directly configured via properties. currently, I am traversing up the parent hierarchy until I come across a logger that has a different level that its parent, but that can hide some configured loggers if they are in the hierarchy and set the same level as something higher up.