Class NullHandler


  • public final class NullHandler
    extends Handler
    This handler quietly does nothing with the given log records. Used as part of JUnit testing to allow logging statements to be exercised but no logging produced.
    Author:
    Charles Rapp
    • Constructor Detail

      • NullHandler

        public NullHandler()
    • Method Detail

      • publish

        public void publish​(LogRecord record)
        Quietly ignores the log record.
        Specified by:
        publish in class Handler
        Parameters:
        record - do not store this record.
      • flush

        public void flush()
        Does nothing since there is nothing to flush
        Specified by:
        flush in class Handler
      • close

        public void close()
        Does nothing since there is nothing to close.
        Specified by:
        close in class Handler