private static boolean isDisabledHandler ( final LogContext logContext , final String handlerName ) { final Map < String , String > disableHandlers = logContext . getAttachment ( CommonAttributes . ROOT_LOGGER_NAME , DISABLED_HANDLERS_KEY ) ; return disableHandlers != null && disableHandlers . containsKey ( handlerName ) ; }
Checks to see if a handler is disabled