Class LogStream

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

public final class LogStream extends Object
Log Stream Class
  • Method Details

    • toPrimitive

      public PrintStream toPrimitive()
      Get this logger as a standard Java PrintStream
      Returns:
      Standard Java PrintStream
    • getLogger

      public Logger getLogger()
      Get the Logger this stream belongs to
      Returns:
      Logger
    • getPrefix

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

      public LogLevel getLevel()
      Get the level this stream logs on
      Returns:
      Log Level
    • print

      public void print(Object obj)
      Print an Object
      Parameters:
      obj - Object
    • print

      public void print(Throwable err)
      Print an Exception
      Parameters:
      err - Exception
    • print

      public void print(TextElement element)
      Print a Text Element
      Parameters:
      element - Text Element
    • print

      public void print(String str)
      Print a String
      Parameters:
      str - String
    • print

      public void print(char[] str)
      Print an Array of Characters
      Parameters:
      str - Character Array
    • print

      public void print(char c)
      Print a Character
      Parameters:
      c - Character
    • println

      public void println()
      Print an empty line
    • println

      public void println(Object... obj)
      Print multiple Objects (separated by a new line)
      Parameters:
      obj - Objects
    • println

      public void println(Throwable... err)
      Print multiple Exceptions (separated by a new line)
      Parameters:
      err - Exceptions
    • println

      public void println(TextElement... element)
      Print a Text Element
      Parameters:
      element - Text Element
    • println

      public void println(String... str)
      Print multiple Strings (separated by a new line)
      Parameters:
      str - Objects
    • println

      public void println(char[]... str)
      Print multiple Arrays of Characters (separated by a new line)
      Parameters:
      str - Character Arrays
    • println

      public void println(char... c)
      Print multiple Characters (separated by a new line)
      Parameters:
      c - Characters