Пример #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();
    }
  }
Пример #2
0
 /**
  * This method clears all internal properties, closes all appenders, removes any turboFilters,
  * fires an OnReset event, removes all status listeners, removes all context listeners (except
  * those which are reset resistant).
  */
 @Override
 public void reset() {
   resetCount++;
   super.reset();
   root.recursiveReset();
   resetTurboFilterList();
   fireOnReset();
   resetListenersExceptResetResistant();
   resetStatusListeners();
 }
Пример #3
0
 @Override
 public void setName(String name) {
   super.setName(name);
   syncRemoteView();
 }
Пример #4
0
 @Override
 public void putProperty(String key, String val) {
   super.putProperty(key, val);
   syncRemoteView();
 }