General way to get a list of all registrars

We used the Apache community logging API for logging (debugging methods, errors, etc.) and we used the log4j implementation.

we used LogManager.getCurrentLoggers()

from log4j to get all loggers.

We have now deployed our application to jboss wildfly, which uses a different logging implementation (Jboss logging), so our code doesn't work as all our loggers are now owned by Jboss.

Now, either I have to find an alternative equivalent LogManager.getCurrentLoggers()

in Jboss, or exclude the logging subsystem in jboss-deployment-structure.xml.

Is there a way to get listofloggers via the general log api? so my code always works regardless of the logging implementation?

+3


source to share





All Articles