Class Logger

java.lang.Object
net.lewmc.foundry.Logger

public class Logger extends Object
Logging Utility.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor for the LogUtil class.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    info(String message)
    Logs a message to the server console as informational (standard).
    boolean
    Logs a message to the console, informing the console operator that it cannot run the command requested.
    void
    severe(String message)
    Logs a message to the server console as severe (fatal error).
    void
    warn(String message)
    Logs a message to the server console as warning (non-fatal error).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Logger

      public Logger(FoundryConfig config)
      Constructor for the LogUtil class.
      Parameters:
      config - - Reference to the config class.
  • Method Details

    • info

      public void info(String message)
      Logs a message to the server console as informational (standard).
      Parameters:
      message - String - Message to log.
    • warn

      public void warn(String message)
      Logs a message to the server console as warning (non-fatal error).
      Parameters:
      message - String - Message to log.
    • severe

      public void severe(String message)
      Logs a message to the server console as severe (fatal error).
      Parameters:
      message - String - Message to log.
    • noConsole

      public boolean noConsole()
      Logs a message to the console, informing the console operator that it cannot run the command requested.