I’m working on a very large java application with log4j, and I was wondering if there is a way to extract in runtime the number of active loggers? Or what are the existing loggers in the application?
My end goal is to get a list of all loggers and change their level in runtime.
Thank you.
I’m working on a very large java application with log4j, and I was wondering
Share
You could try something like:
Then iterate over allLoggers.