Class ExtensionLogger

java.lang.Object
org.geysermc.geyser.extension.ExtensionLogger
All Implemented Interfaces:
GeyserLogger

public class ExtensionLogger extends Object implements GeyserLogger
Provides a proxy to the main logger that prefixes the extension name to messages
  • Constructor Details

  • Method Details

    • severe

      public void severe(String message)
      Description copied from interface: GeyserLogger
      Logs a severe message to console
      Specified by:
      severe in interface GeyserLogger
      Parameters:
      message - the message to log
    • severe

      public void severe(String message, Throwable error)
      Description copied from interface: GeyserLogger
      Logs a severe message and an exception to console
      Specified by:
      severe in interface GeyserLogger
      Parameters:
      message - the message to log
      error - the error to throw
    • error

      public void error(String message)
      Description copied from interface: GeyserLogger
      Logs an error message to console
      Specified by:
      error in interface GeyserLogger
      Parameters:
      message - the message to log
    • error

      public void error(String message, Throwable error)
      Description copied from interface: GeyserLogger
      Logs an error message and an exception to console
      Specified by:
      error in interface GeyserLogger
      Parameters:
      message - the message to log
      error - the error to throw
    • warning

      public void warning(String message)
      Description copied from interface: GeyserLogger
      Logs a warning message to console
      Specified by:
      warning in interface GeyserLogger
      Parameters:
      message - the message to log
    • info

      public void info(String message)
      Description copied from interface: GeyserLogger
      Logs an info message to console
      Specified by:
      info in interface GeyserLogger
      Parameters:
      message - the message to log
    • debug

      public void debug(String message)
      Description copied from interface: GeyserLogger
      Logs a debug message to console
      Specified by:
      debug in interface GeyserLogger
      Parameters:
      message - the message to log
    • setDebug

      public void setDebug(boolean debug)
      Description copied from interface: GeyserLogger
      Sets if the logger should print debug messages
      Specified by:
      setDebug in interface GeyserLogger
      Parameters:
      debug - if the logger should print debug messages
    • isDebug

      public boolean isDebug()
      Description copied from interface: GeyserLogger
      If debug is enabled for this logger
      Specified by:
      isDebug in interface GeyserLogger