Class Logger.Slf4jLogBackEnd

java.lang.Object
com.github.markusbernhardt.proxy.util.Logger.Slf4jLogBackEnd
All Implemented Interfaces:
Logger.LogBackEnd
Enclosing class:
Logger

public class Logger.Slf4jLogBackEnd extends Object implements Logger.LogBackEnd
Slf4j logging backend.
  • Field Details

    • loggers

      protected Map<Class<?>,org.slf4j.Logger> loggers
  • Constructor Details

    • Slf4jLogBackEnd

      public Slf4jLogBackEnd()
  • Method Details

    • log

      public void log(Class<?> clazz, Logger.LogLevel loglevel, String msg, Object... params)
      Invoked for every logging event.
      Specified by:
      log in interface Logger.LogBackEnd
      Parameters:
      clazz - the class that sends the log message.
      loglevel - the logging level.
      msg - the message format string.
      params - the message parameters for the format string.
    • getLogger

      protected org.slf4j.Logger getLogger(Class<?> clazz)