Class Log4jLoggingHandler

java.lang.Object
de.larsgrefer.sass.embedded.logging.Log4jLoggingHandler
All Implemented Interfaces:
LoggingHandler

public class Log4jLoggingHandler extends Object implements LoggingHandler
Log4j2 based LoggingHandler implementation.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Log4jLoggingHandler(org.apache.logging.log4j.Logger logger)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.logging.log4j.Level
    getLogLevel(sass.embedded_protocol.EmbeddedSass.LogEventType type)
     
    void
    handle(sass.embedded_protocol.EmbeddedSass.OutboundMessage.LogEventOrBuilder logEvent)
     

    Methods inherited from class java.lang.Object

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

    • Log4jLoggingHandler

      public Log4jLoggingHandler(org.apache.logging.log4j.Logger logger)
  • Method Details

    • handle

      public void handle(sass.embedded_protocol.EmbeddedSass.OutboundMessage.LogEventOrBuilder logEvent)
      Specified by:
      handle in interface LoggingHandler
    • getLogLevel

      protected org.apache.logging.log4j.Level getLogLevel(sass.embedded_protocol.EmbeddedSass.LogEventType type)