Hello folks,

As you have already know, we have been using "static loggers" in our codes. But 
using those libraries in Java EE containers, problems have occured. 


For example, in Tomcat, Loggers are configured per classloader. When 
application 
is undeployed all of the handlers of application loggers are removed. 
Therefore, 
after undeploying the first applications, other applications that use the same 
class are suffered from logging. i.e

For example,

private static final WebBeansLogger logger = .....

When first application is deployed, it sets logger. When it is undeplyed, 
logger 
is reset and no application is able to use it.

I think to change all loggers from static to normal ? 

WDYT?

Thanks;

--Gurkan


Reply via email to