I am trying to get the list of jboss loggers programmatically through the LogManager API. Here is what I do
import org.jboss.logmanager.LogManager;
Enumeration<String> e = LogManager.getLogManager().getLoggerNames();
while(e.hasMoreElements()) {
System.out.println(e.nextElement());
}
The result is always empty, though I have created few loggers. I was trying to look at the source code and it looks like the getLoggerNames() function is overriden in jboss LogManager which extends from java.util.logging.LogManager. The overriden function returns an empty enumeration always.
Is there any other way we can get the list of jboss loggers programmatically ?
I forgot to mention that I am using Jboss 6 milestone 5 release