outputExceptionalShutdownMessage( "An exception occurred during startup (see exception stack trace following this message). " + "Attempting to force SLF4J to finish initializing to make sure all the log messages " outputExceptionalShutdownMessage( "Done with initialization call. Waiting " + delayInMillisIfExceptionOccurs + " milliseconds to give it time to finish " ); Thread.sleep(delayInMillisIfExceptionOccurs); outputExceptionalShutdownMessage("Done waiting. The app will crash now.", null, logger); outputExceptionalShutdownMessage( "SLF4J exploded while trying to force initialization with the following error:", lfEx, logger );