Class ConsoleStreamHandler

  • public class ConsoleStreamHandler
    extends java.util.logging.StreamHandler
    Flushes after every log and doesn't close output stream.
    • Constructor Summary

      Constructor Description
      ConsoleStreamHandler​( out)
      Creates a ConsoleStreamHandler for out.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Don't close output stream.
      void publish​(java.util.logging.LogRecord record)
      • Methods inherited from class java.util.logging.StreamHandler

        flush, isLoggable, setEncoding, setOutputStream
      • Methods inherited from class java.util.logging.Handler

        getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel
      • Methods inherited from class java.lang.Object

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

      • ConsoleStreamHandler

        public ConsoleStreamHandler​( out)
        Creates a ConsoleStreamHandler for out.
        out - the console
    • Method Detail

      • publish

        public void publish​(java.util.logging.LogRecord record)
        publish in class java.util.logging.StreamHandler
        See Also:
      • close

        public void close()
        Don't close output stream.
        close in class java.util.logging.StreamHandler