Class Logger

java.lang.Object
com.burchard36.api.utils.Logger

public class Logger extends Object
The API's logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    debug​(String message)
    Logs a debug message, if the API is in debug mode
    static void
    error​(String message)
    Logs an error to the server, supports ampersand symbols for coloring
    static void
    log​(String message)
    Logs a message to the server, supports ampersand symbols for coloring
    static void
    warn​(String message)
    Warns the server, supports ampersand symbols

    Methods inherited from class java.lang.Object

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

    • Logger

      public Logger()
  • Method Details

    • debug

      public static void debug(String message)
      Logs a debug message, if the API is in debug mode
      Parameters:
      message - A String to debug, supports ampersand symbols
    • log

      public static void log(String message)
      Logs a message to the server, supports ampersand symbols for coloring
      Parameters:
      message - A String, supports ampersand symbols for coloring
    • warn

      public static void warn(String message)
      Warns the server, supports ampersand symbols
      Parameters:
      message - A String to warn to the server, supports ampersand symbols for coloring
    • error

      public static void error(String message)
      Logs an error to the server, supports ampersand symbols for coloring
      Parameters:
      message - A String to log as an error, supports ampersand symbols for coloring