/** 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(); } }
/** * 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(); }
@Override public void setName(String name) { super.setName(name); syncRemoteView(); }
@Override public void putProperty(String key, String val) { super.putProperty(key, val); syncRemoteView(); }