You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Pedro Pedruzzi <pe...@gmail.com> on 2015/03/09 21:54:34 UTC

Configuration don't seem to take effect on previously created Logger (Weblogic 10.3.5)

Hello.

I am using log4j 1.2.14 on WebLogic 10.3.5 application server. I would
really appreciate some help to understand and debug a possible issue.

I use DOMConfigurator.configureAndWatch for configuration (called on a
weblogic ApplicationLifecycleListener postStart callback).

Most of the loggers work fine. But some of them, apparently those
created before the configureAndWatch call, stay completely silent even
after configuration. For example, the issue occurs on ServletFilters
(they are instantiated by the container during application startup).

I scanned the Category hierarchy and saw that my silent logger's
parent is the "root" with level = OFF.

If I Logger.getLogger again, I get a fine one with the expected
configuration hierarchy. If I use the Apache Commons Logging API, I
always get the silent one (I guess it is being cached).

I couldn't reproduce this problem in Java SE / unit tests. The loggers
start silent, but the configuration update them automatically.

Am I doing something conceptually wrong?

Is it expected that this "automatic reconfiguration" will work on my scenario?

How can I debug this problem further?

Thanks in advance.

ızznɹpǝԀ oɹpǝԀ

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