Class SLF4JLogger

java.lang.Object
me.hsgamer.hscore.logger.slf4j.SLF4JLogger
All Implemented Interfaces:
Logger

public class SLF4JLogger extends Object implements Logger
The Logger for Logger
  • Constructor Details

    • SLF4JLogger

      public SLF4JLogger(org.slf4j.Logger logger)
      Create a new logger
      Parameters:
      logger - the logger
    • SLF4JLogger

      public SLF4JLogger(String name)
      Create a new logger
      Parameters:
      name - the name
    • SLF4JLogger

      public SLF4JLogger(Class<?> clazz)
      Create a new logger
      Parameters:
      clazz - the class
  • Method Details

    • log

      public void log(LogLevel level, String message)
      Description copied from interface: Logger
      Log a message
      Specified by:
      log in interface Logger
      Parameters:
      level - the level
      message - the message
    • log

      public void log(LogLevel level, Throwable throwable)
      Description copied from interface: Logger
      Log a throwable
      Specified by:
      log in interface Logger
      Parameters:
      level - the level
      throwable - the throwable
    • log

      public void log(LogLevel level, String message, Throwable throwable)
      Description copied from interface: Logger
      Log a message and a throwable
      Specified by:
      log in interface Logger
      Parameters:
      level - the level
      message - the message
      throwable - the throwable