Example #1
0
  /** Default method for stopping the Logback context */
  protected void stop() {
    addInfo("Logback context being closed via shutdown hook");

    Context hookContext = getContext();
    if (hookContext instanceof ContextBase) {
      ContextBase context = (ContextBase) hookContext;
      context.stop();
    }
  }