logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Wiedmann <jochen.wiedm...@gmail.com>
Subject Re: LoggerContext is reloaded on application shutdown
Date Tue, 20 Oct 2015 17:48:13 GMT
This is quite as it should. If the webapp is being shutdown, then all
acquired resources (including the logging system) are to be released.
You'd end up with a resource leak otherwise. Why do you expect log4j
to be an exception?

Jochen


On Tue, Oct 20, 2015 at 6:41 PM, Benoit Mouquet <bmouquet@excilys.com> wrote:
> Hello everyone,
>
> I send you a mail because I'm currently try to integrate log4j2 in new
> project (Java web application, spring, hibernate ...).
>
> I have configured my dependency (I use SLF4J with Log4j2 and the module
> Log4j2-web) and create my log4j2.xml file and all seems to work properly.
> The only problem is that my LoggerContext is reloaded when I close my Jetty
> server (shutdown first and start again). You can see it in the log.txt file.
> I don't understand why this occurs. Is it a normal behavior ? How I can
> avoid this ?
>
>
> Thanks in advance,
>
> --
> Benoit Mouquet
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org



-- 
The next time you hear: "Don't reinvent the wheel!"

http://www.keystonedevelopment.co.uk/wp-content/uploads/2014/10/evolution-of-the-wheel-300x85.jpg

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


Mime
View raw message