Details
-
Question
-
Status: Resolved
-
Major
-
Resolution: Information Provided
-
2.13.3
-
None
-
None
Description
I am trying to change the Level programmatically .
I am able to change the logger level using the loggerConfig, but I could not find a way to change the appender level.
- Is there any code example that demonstrate how to change the appender level like we have :http://logging.apache.org/log4j/2.x/manual/customconfig.html#Hybrid for logger level change, as I see the level in appender is final.
- To change appender level should we change the appender or appenderRef? if I change appenderRef of a logger then any other logger using the same appender will get same level. (I mean appender is a singleton)
Thanks for your help in advance.