Class AnsiConsoleHandler
- java.lang.Object
-
- java.util.logging.Handler
-
- java.util.logging.StreamHandler
-
- java.util.logging.ConsoleHandler
-
- io.gitlab.rychly.gphotos_uploader.logger.AnsiConsoleHandler
-
public class AnsiConsoleHandler extends java.util.logging.ConsoleHandler
Color ConsoleHandler using ANSI sequences.
-
-
Constructor Summary
Constructors Constructor Description AnsiConsoleHandler()
-
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.StreamHandler
isLoggable, setEncoding, setOutputStream
-
-
-
-
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 classjava.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 classjava.util.logging.StreamHandler
-
-