You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Vinay Srivastav Kasarla (JIRA)" <ji...@apache.org> on 2014/03/25 10:15:43 UTC

[jira] [Created] (LOG4J2-580) Log4j 2 on Weblogic server

Vinay Srivastav Kasarla created LOG4J2-580:
----------------------------------------------

             Summary: Log4j 2 on Weblogic server
                 Key: LOG4J2-580
                 URL: https://issues.apache.org/jira/browse/LOG4J2-580
             Project: Log4j 2
          Issue Type: Bug
          Components: log4j 1.2 emulation
    Affects Versions: 2.0-rc1
         Environment: Windows 7 64-bit, Oracle ADF 12c, JDeveloper 12c and Weblogic 12c. 
            Reporter: Vinay Srivastav Kasarla
            Priority: Blocker
             Fix For: 2.0-rc2


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 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org