code: 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);
      }
docs: Checks to see if a handler is disabled
  
  @param handlerName the name of the handler to enable.