Class Slf4jFloodgateLogger

java.lang.Object
org.geysermc.floodgate.core.logger.Slf4jFloodgateLogger
All Implemented Interfaces:
FloodgateLogger

@Singleton public final class Slf4jFloodgateLogger extends Object implements FloodgateLogger
  • Constructor Details

    • Slf4jFloodgateLogger

      public Slf4jFloodgateLogger()
  • Method Details

    • error

      public void error(String message, Object... args)
      Description copied from interface: FloodgateLogger
      Logs an error message to the console, with 0 or more arguments.
      Specified by:
      error in interface FloodgateLogger
      Parameters:
      message - the message to log to the console
      args - the arguments to fill the missing spots in the message
    • error

      public void error(String message, Throwable throwable, Object... args)
      Description copied from interface: FloodgateLogger
      Logs an error message to the console, with 0 or more arguments.
      Specified by:
      error in interface FloodgateLogger
      Parameters:
      message - the message to log to the console
      throwable - the throwable to log
      args - the arguments to fill the missing spots in the message
    • warn

      public void warn(String message, Object... args)
      Description copied from interface: FloodgateLogger
      Logs a warning message to the console, with 0 or more arguments.
      Specified by:
      warn in interface FloodgateLogger
      Parameters:
      message - the message to log to the console
      args - the arguments to fill the missing spots in the message
    • info

      public void info(String message, Object... args)
      Description copied from interface: FloodgateLogger
      Logs an info message to the console, with 0 or more arguments.
      Specified by:
      info in interface FloodgateLogger
      Parameters:
      message - the message to log to the console
      args - the arguments to fill the missing spots in the message
    • info

      public void info(net.kyori.adventure.text.Component message)
      Specified by:
      info in interface FloodgateLogger
    • translatedInfo

      public void translatedInfo(TranslatableMessage message, Placeholder... args)
      Specified by:
      translatedInfo in interface FloodgateLogger
    • debug

      public void debug(String message, Object... args)
      Description copied from interface: FloodgateLogger
      Logs a debug message to the console, with 0 or more arguments.
      Specified by:
      debug in interface FloodgateLogger
      Parameters:
      message - the message to log to the console
      args - the arguments to fill the missing spots in the message
    • trace

      public void trace(String message, Object... args)
      Description copied from interface: FloodgateLogger
      Logs a trace message to the console, with 0 or more arguments.
      Specified by:
      trace in interface FloodgateLogger
      Parameters:
      message - the message to log to the console
      args - the arguments to fill the missing spots in the message
    • isDebug

      public boolean isDebug()
      Description copied from interface: FloodgateLogger
      Returns true if debugging is enabled
      Specified by:
      isDebug in interface FloodgateLogger