public static void setDetectLoggerNameMismatch(boolean enabled) {
        LoggerFactory.DETECT_LOGGER_NAME_MISMATCH = enabled;
    }
Set LoggerFactory.DETECT_LOGGER_NAME_MISMATCH variable.

@param enabled a boolean
slf4j-api/src/main/java/org/slf4j/LoggerFactoryFriend.java