LogManager.shutdown() is the last in line to be called
or to prevent it from starting up again.
Any idea how I might do that?
Rene
-Original Message-
From: Piotr P. Karwasz
Sent: Montag, 13. Juni 2022 10:15
To: Log4J Users List
Subject: [External] Re: Shutting down Log4j2 in a JavaEE environment
Hi René,
On Fri, 10 Jun 2022 at 16:36, Schindler, René
wrote:
> Therefore we came up with this workaround:
>
> @PreDestroy
> public static void shutDown() {
> org.apache.logging.log4j.LogManager.shutdown();
>
> Configurator.reconfigure(new NullConfiguration());
> Server.unregisterMBea
Hello,
I have a problem with shutting down log4j2 in a Java EE environment, which does
not include servlets.
Currently my code for shutting down log4j2 is located in a Singleton Startup
Bean in a @PreDestroy annotated method.
@PreDestroy
public static void shutDown() {
LogManager.shutd