Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Invalid
-
2.0-rc1
-
Windows 7 64-bit, Oracle ADF 12c, JDeveloper 12c and Weblogic 12c.
Description
Hi,
I have a requirement to configure my application with Log4j2 logger to my weblogic server. I have used the latest Log4j2 jar and appropriate appenders and implemented it successfully.
Now, my requirement is to dynamically change the log level of my application, using Weblogic features. I am trying it using
http://176.34.122.30/blog/2010/04/22/dynamically-changing-log-level-with-weblogic-log4j-jmx-and-wlst/
but it is more specific to log4j1.2 rather log4j 2.
Could you please help on
1. Giving a series of steps to make a dynamic change of log level with out restarting the server at production environment.
2. What is alternate used in log4j2 for
Enumeration<Logger> e = LogManager.getRootLogger().getLoggerRepository().getCurrentLoggers();
3. how to set a log level, in log4j 1.2 we have
l.setLevel(Level.toLevel(level)); to set, but nothing as such in Log4j2.
this is really blocking my work. Your response would be highly appreciated!
thanks