public void shutdown ( ) { if ( shutdownFlag . compareAndSet ( false , true ) ) { try { if ( LogManager . getLogManager ( ) instanceof ShutdownLogManager ) ( ( ShutdownLogManager ) LogManager . getLogManager ( ) ) . shutdown ( ) ; } catch ( NoClassDefFoundError ignore ) { // Om nom nom. Some custom class loaders, like Tomcat's one, cannot load classes while in shutdown hooks, since their // runtime is already shutdown. Ignoring the exception, if ShutdownLogManager is not loaded at this point there are no instances // of it anyway and we have nothing to shutdown. } } }
Shutdowns this log manager .