Class ConsoleHandler

java.lang.Object
com.dua3.utility.logging.ConsoleHandler
All Implemented Interfaces:
LogEntryHandler

public class ConsoleHandler extends Object implements LogEntryHandler
The ConsoleHandler class is an implementation of the LogEntryHandler interface. It handles log entries by writing them to the console.
  • Constructor Details

    • ConsoleHandler

      public ConsoleHandler(PrintStream out, boolean colored)
      Constructs a ConsoleHandler with the specified PrintStream and colored flag.
      Parameters:
      out - the PrintStream to which log messages will be written
      colored - flag indicating whether to use colored brackets for different log levels
  • Method Details