Class SLF4JLogger

java.lang.Object
com.restfb.logging.RestFBLogger
com.restfb.logging.SLF4JLogger

public class SLF4JLogger extends RestFBLogger
Logger implementation based on org.slf4j.Logger.

The slf4j configuration should be provided by a external application. The mapping is defined like:

  • trace maps to slf4j.trace
  • debug maps to slf4j.debug
  • info maps to slf4j.info
  • warn maps to slf4j.warn
  • error maps to slf4j.error
  • fatal maps to slf4j.fatal
  • Constructor Details

  • Method Details

    • trace

      public void trace(String msg, Object... args)
      Description copied from class: RestFBLogger
      Log a message at the TRACE level according to the specified format and arguments.
      Specified by:
      trace in class RestFBLogger
      Parameters:
      msg - the log message
      args - optional arguments, the last argument may be an exception
    • debug

      public void debug(String msg, Object... args)
      Description copied from class: RestFBLogger
      Log a message at the DEBUG level according to the specified format and arguments.
      Specified by:
      debug in class RestFBLogger
      Parameters:
      msg - the log message
      args - optional arguments, the last argument may be an exception
    • info

      public void info(String msg, Object... args)
      Description copied from class: RestFBLogger
      Log a message at the INFO level according to the specified format and arguments.
      Specified by:
      info in class RestFBLogger
      Parameters:
      msg - the log message
      args - optional arguments, the last argument may be an exception
    • warn

      public void warn(String msg, Object... args)
      Description copied from class: RestFBLogger
      Log a message at the WARN level according to the specified format and arguments.
      Specified by:
      warn in class RestFBLogger
      Parameters:
      msg - the log message
      args - optional arguments, the last argument may be an exception
    • error

      public void error(String msg, Object... args)
      Description copied from class: RestFBLogger
      Log a message at the ERROR level according to the specified format and arguments.
      Specified by:
      error in class RestFBLogger
      Parameters:
      msg - the log message
      args - optional arguments, the last argument may be an exception
    • fatal

      public void fatal(String msg, Object... args)
      Description copied from class: RestFBLogger
      Log a message at the FATAL level according to the specified format and arguments.
      Specified by:
      fatal in class RestFBLogger
      Parameters:
      msg - the log message
      args - optional arguments, the last argument may be an exception
    • isDebugEnabled

      public boolean isDebugEnabled()
      Description copied from class: RestFBLogger
      Is the logger instance enabled for the DEBUG level?
      Specified by:
      isDebugEnabled in class RestFBLogger
      Returns:
      true if it is enabled, false otherwise
    • isInfoEnabled

      public boolean isInfoEnabled()
      Description copied from class: RestFBLogger
      Is the logger instance enabled for the INFO level?
      Specified by:
      isInfoEnabled in class RestFBLogger
      Returns:
      true if it is enabled, false otherwise
    • isTraceEnabled

      public boolean isTraceEnabled()
      Description copied from class: RestFBLogger
      Is the logger instance enabled for the TRACE level?
      Specified by:
      isTraceEnabled in class RestFBLogger
      Returns:
      true if it is enabled, false otherwise