'unable to get all loggers using log4j2
org.apache.logging.log4j.core.LoggerContext logContext =
(org.apache.logging.log4j.core.LoggerContext)
LogManager.getContext(false);
Map<String, LoggerConfig> map = logContext.getConfiguration().getLoggers();
I am getting only root logger but I need to get all loggers and I want change logger level at run time.
Pls advise.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
