Class Slf4JLogBridgeImpl

  • All Implemented Interfaces:
    Slf4JLogBridge

    public class Slf4JLogBridgeImpl
    extends java.lang.Object
    implements Slf4JLogBridge
    Implementation which is intended to bridge the ESAPI Logging API into SLF4J supported Object structures.
    • Constructor Summary

      Constructors 
      Constructor Description
      Slf4JLogBridgeImpl​(LogAppender messageAppender, LogScrubber logScrubber, java.util.Map<java.lang.Integer,​org.owasp.esapi.logging.slf4j.Slf4JLogLevelHandler> esapiSlfHandlerMap)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void log​(org.slf4j.Logger logger, int esapiLevel, Logger.EventType type, java.lang.String message)
      Translation for the provided ESAPI level, type, and message to the specified SLF4J Logger.
      void log​(org.slf4j.Logger logger, int esapiLevel, Logger.EventType type, java.lang.String message, java.lang.Throwable throwable)
      Translation for the provided ESAPI level, type, message, and Throwable to the specified SLF4J Logger.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Slf4JLogBridgeImpl

        public Slf4JLogBridgeImpl​(LogAppender messageAppender,
                                  LogScrubber logScrubber,
                                  java.util.Map<java.lang.Integer,​org.owasp.esapi.logging.slf4j.Slf4JLogLevelHandler> esapiSlfHandlerMap)
        Constructor.
        Parameters:
        logScrubber - Log message cleaner.
        esapiSlfHandlerMap - Map identifying ESAPI -> SLF4J log level associations.
    • Method Detail

      • log

        public void log​(org.slf4j.Logger logger,
                        int esapiLevel,
                        Logger.EventType type,
                        java.lang.String message)
        Description copied from interface: Slf4JLogBridge
        Translation for the provided ESAPI level, type, and message to the specified SLF4J Logger.
        Specified by:
        log in interface Slf4JLogBridge
        Parameters:
        logger - Logger to receive the translated message.
        esapiLevel - ESAPI level of event.
        type - ESAPI event type
        message - ESAPI event message content.
      • log

        public void log​(org.slf4j.Logger logger,
                        int esapiLevel,
                        Logger.EventType type,
                        java.lang.String message,
                        java.lang.Throwable throwable)
        Description copied from interface: Slf4JLogBridge
        Translation for the provided ESAPI level, type, message, and Throwable to the specified SLF4J Logger.
        Specified by:
        log in interface Slf4JLogBridge
        Parameters:
        logger - Logger to receive the translated message.
        esapiLevel - ESAPI level of event.
        type - ESAPI event type
        message - ESAPI event message content.
        throwable - ESAPI event Throwable content