Class OutputHandler


public class OutputHandler extends StreamHandler
Java Logging Handler with some more sensible defaults (in my opinion), including (1) sending logs to System.out instead of System.err, and (2) using a shorter, single line format.
  • Constructor Details

    • OutputHandler

      public OutputHandler()
      Constructs a new output logger.
  • Method Details

    • updateConfiguration

      public static void updateConfiguration(boolean force)
      Updates Java's logging configuration with our defaults.
      Parameters:
      force - overwrite any existing settings
    • getLogger

      public static Logger getLogger(String name)
      Returns the logger with the given name.
      Parameters:
      name - the name of the logger
      Returns:
      the logger
    • publish

      public void publish(LogRecord record)
      Overrides:
      publish in class StreamHandler
    • close

      public void close()
      Overrides:
      close in class StreamHandler