This content has been marked as final.
Show 1 reply
-
1. Re: How do I get a list of configured loggers using Jboss LogManager with SLF4J?
jamezp Oct 7, 2013 7:53 PM (in response to kfromme)The first option will not work as jboss-logmanager does not implement the getLoggerNames() method so it always returns an empty enumeration.
The other one should work, but it looks like there is a bug. I've filed an issue for it [LOGMGR-84] LoggingMXBean is not being set during log manager initialization - JBoss Issue Tracker.
One workaround would be to use the JBoss Log Manager directly until the bug gets fixed.
final List<String> loggerNames = org.jboss.logmanager.LogContext.getLogContext().getLoggingMXBean().getLoggerNames(); for (String loggerName : loggerNames) { System.out.println(loggerName); }
--
James R. Perkins