Search in sources :

Example 1 with SLF4JBridgeHandler

use of org.slf4j.bridge.SLF4JBridgeHandler in project spring-boot by spring-projects.

the class LogbackLoggingSystemTests method bridgeHandlerInstalled.

private boolean bridgeHandlerInstalled() {
    java.util.logging.Logger rootLogger = LogManager.getLogManager().getLogger("");
    Handler[] handlers = rootLogger.getHandlers();
    for (Handler handler : handlers) {
        if (handler instanceof SLF4JBridgeHandler) {
            return true;
        }
    }
    return false;
}
Also used : SLF4JBridgeHandler(org.slf4j.bridge.SLF4JBridgeHandler) SLF4JBridgeHandler(org.slf4j.bridge.SLF4JBridgeHandler) Handler(java.util.logging.Handler)

Example 2 with SLF4JBridgeHandler

use of org.slf4j.bridge.SLF4JBridgeHandler in project spring-boot by spring-projects.

the class LoggingApplicationListenerTests method bridgeHandlerInstalled.

private boolean bridgeHandlerInstalled() {
    Logger rootLogger = LogManager.getLogManager().getLogger("");
    Handler[] handlers = rootLogger.getHandlers();
    for (Handler handler : handlers) {
        if (handler instanceof SLF4JBridgeHandler) {
            return true;
        }
    }
    return false;
}
Also used : SLF4JBridgeHandler(org.slf4j.bridge.SLF4JBridgeHandler) SLF4JBridgeHandler(org.slf4j.bridge.SLF4JBridgeHandler) Handler(java.util.logging.Handler) Logger(java.util.logging.Logger)

Aggregations

Handler (java.util.logging.Handler)2 SLF4JBridgeHandler (org.slf4j.bridge.SLF4JBridgeHandler)2 Logger (java.util.logging.Logger)1