Class InternalPrintStreamLogHandler

  • All Implemented Interfaces:
    de.dytanic.cloudnet.common.logging.ILogHandler, java.lang.AutoCloseable

    public final class InternalPrintStreamLogHandler
    extends de.dytanic.cloudnet.common.logging.AbstractLogHandler
    A redirect log handler, to the origin output and error stream. The LogOutputStream will replace the System.out and System.err stream after this initialization by the Wrapper
    • Field Summary

      • Fields inherited from class de.dytanic.cloudnet.common.logging.AbstractLogHandler

        formatter
    • Constructor Summary

      Constructors 
      Constructor Description
      InternalPrintStreamLogHandler​(java.io.PrintStream outputStream, java.io.PrintStream errorStream)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void handle​(@NotNull de.dytanic.cloudnet.common.logging.LogEntry logEntry)  
      • Methods inherited from class de.dytanic.cloudnet.common.logging.AbstractLogHandler

        getFormatter, setFormatter
      • Methods inherited from class java.lang.Object

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

      • InternalPrintStreamLogHandler

        public InternalPrintStreamLogHandler​(java.io.PrintStream outputStream,
                                             java.io.PrintStream errorStream)
    • Method Detail

      • handle

        public void handle​(@NotNull
                           @NotNull de.dytanic.cloudnet.common.logging.LogEntry logEntry)
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Overrides:
        close in class de.dytanic.cloudnet.common.logging.AbstractLogHandler