Class LogOutput

java.lang.Object
net.orbyfied.j8.util.logging.io.LogOutput

public class LogOutput extends Object
  • Field Details

    • STDOUT

      public static final LogOutput STDOUT
    • VOIDING

      public static final LogOutput VOIDING
  • Method Details

    • fork

      public LogOutput.Builder fork(String name)
      Forks this output.
      Parameters:
      name - The new name.
      Returns:
      The builder.
    • getName

      public String getName()
    • isFormatted

      public boolean isFormatted()
    • setFormatted

      public LogOutput setFormatted(boolean b)
    • getStream

      public PrintStream getStream()
    • isActive

      public boolean isActive()
    • pipeline

      public LogPipeline pipeline()
    • close

      public void close()
      Closes this output, deactivating the worker thread and closing the output stream.
    • queue

      public void queue(LogRecord record)
      Queues a new log record and notifies the worker thread if it is waiting..
      Parameters:
      record - The record.
    • setActive

      public LogOutput setActive(boolean b)
      Set the worker status.
      Parameters:
      b - Active or inactive.
      Returns:
      This.
    • builder

      public static LogOutput.Builder builder(String name)