Class AnsiConsoleHandler


  • public class AnsiConsoleHandler
    extends java.util.logging.ConsoleHandler
    Color ConsoleHandler using ANSI sequences.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void flush()
      Flush any buffered messages.
      void publish​(java.util.logging.LogRecord record)
      Publish a LogRecord.
      • Methods inherited from class java.util.logging.ConsoleHandler

        close
      • 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

      • AnsiConsoleHandler

        public AnsiConsoleHandler()
    • Method Detail

      • publish

        public void publish​(java.util.logging.LogRecord record)
        Publish a LogRecord.

        The logging request was made initially to a Logger object, which initialized the LogRecord and forwarded it here.

        Overrides:
        publish in class java.util.logging.ConsoleHandler
        Parameters:
        record - description of the log event. A null record is silently ignored and is not published
      • flush

        public void flush()
        Flush any buffered messages.
        Overrides:
        flush in class java.util.logging.StreamHandler