title: How to allow to log in any classes from shutdownHook
body: <p>Suppose a shutdownHook as :   </p>
  
  <pre><code> class ShutdownHolder extends Thread {  
  
      public void run() {
        Logger logger = LoggerFactory.getCoreLogger(ShutdownHolder.class);
        try {
          logger.info("Shutdown hook is running...");
          doSomething();  
          logger.info("Shutdown hook end."); 
        } catch(Exception e) {
          logger.severe("Unexpected ERROR during shutdown", e);
        }
      }
    }
  </code></pre>
  
  <p>How to avoid that logger doesn't be closed before ShutdownHook ends ?</p>
  
  <p>For example, doSomething() method could call several methods on other accessible classes also writening logs. I don't want to skip all these logs. </p>