java.lang.Object
com.dua3.utility.logging.ConsoleHandler
- All Implemented Interfaces:
LogEntryHandler
The ConsoleHandler class is an implementation of the LogEntryHandler interface.
It handles log entries by writing them to the console.
-
Constructor Summary
ConstructorsConstructorDescriptionConsoleHandler(PrintStream out, boolean colored) Constructs a ConsoleHandler with the specified PrintStream and colored flag. -
Method Summary
-
Constructor Details
-
ConsoleHandler
Constructs a ConsoleHandler with the specified PrintStream and colored flag.- Parameters:
out- the PrintStream to which log messages will be writtencolored- flag indicating whether to use colored brackets for different log levels
-
-
Method Details
-
handleEntry
Description copied from interface:LogEntryHandlerHandles a log entry.- Specified by:
handleEntryin interfaceLogEntryHandler- Parameters:
entry- the log entry to be handled
-