Module de.carne

Class ConsoleHandler


  • public class ConsoleHandler
    extends java.util.logging.StreamHandler
    A Handler which makes use of the Console class.

    If the current VM has a Console attached any log messages issued to this handler will be written to this console. If the current VM has no Console attached the behavior depends on the handler's consoleOnly property. If this property is set to true (default) log message are ignored. If this property is set to false log messages are written to System.out.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void flush()  
      void publish​(java.util.logging.LogRecord logRecord)  
      • Methods inherited from class java.util.logging.StreamHandler

        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

    • Method Detail

      • publish

        public void publish​(java.util.logging.LogRecord logRecord)
        Overrides:
        publish in class java.util.logging.StreamHandler
      • flush

        public void flush()
        Overrides:
        flush in class java.util.logging.StreamHandler
      • close

        public void close()
        Overrides:
        close in class java.util.logging.StreamHandler