1 Reply Latest reply on Dec 9, 2010 11:34 PM by server_user

    Empty list of loggers returned by jboss LogManager API

    server_user

      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 ?