Class Logger

java.lang.Object
net.ME1312.Galaxi.Log.Logger

public final class Logger extends Object
Logger Class
  • Field Details

  • Constructor Details

    • Logger

      public Logger(String prefix)
      Creates a new Logger
      Parameters:
      prefix - Log Prefix
  • Method Details

    • get

      public static Logger get(String prefix)
      Get a static logger
      Parameters:
      prefix - Log Prefix
      Returns:
      Logger
    • get

      public LogStream get(LogLevel level)
      Get the stream by Log Level
      Parameters:
      level - Log Level
      Returns:
      Log Stream
    • toPrimitive

      public Logger toPrimitive()
      Get this logger as a standard Java Logger
      Returns:
      Standard Java Logger
    • getPrefix

      public String getPrefix()
      Get the prefix this logger uses
      Returns:
      Logger Prefix
    • addFilter

      public void addFilter(LogFilter filter)
      Add a filter to this logger
      Parameters:
      filter - Log Filter
    • removeFilter

      public void removeFilter(LogFilter filter)
      Remove a filter from this logger
      Parameters:
      filter - Log Filter
    • addStaticFilter

      public static void addStaticFilter(LogFilter filter)
      Add a filter to all loggers
      Parameters:
      filter - Static Log Filter
    • removeStaticFilter

      public static void removeStaticFilter(LogFilter filter)
      Remove a static filter
      Parameters:
      filter - Static Log Filter