Class Logger

java.lang.Object
com.chillycheesy.modulo.utils.Logger

public class Logger extends Object
Logger class can be used to display information in the server console.
  • Constructor Details

    • Logger

      public Logger(EventContainer container)
      Initialize a new Logger. It si not necessary to instantiate a new Logger. If you want to display a log, use ModuloAPI.getLogger().
      Parameters:
      container - EventContainer instance.
  • Method Details

    • info

      public void info(Module module, Object content)
      Broadcast an info log in the console.
      Parameters:
      module - Module that is logging the message.
      content - The Object to broadcast (The console use the toString() method of the object to broadcast it.).
    • warn

      public void warn(Module module, Object content)
      Broadcast warn log in the console.
      Parameters:
      module - Module that is logging the message.
      content - The Object to broadcast (The console use the toString() method of the object to broadcast it.).
    • error

      public void error(Module module, Object content)
      Broadcast an error log in the console.
      Parameters:
      module - Module that is logging the message.
      content - The Object to broadcast (The console use the toString() method of the object to broadcast it.).
    • debug

      public void debug(Module module, Object content)
      Broadcast a debug log in the console.
      Parameters:
      module - Module that is logging the message.
      content - The Object to broadcast (The console use the toString() method of the object to broadcast it.).