Class NullHandler

  • All Implemented Interfaces:
    Comparable<Handler>

    public class NullHandler
    extends AbstractLogHandler
    Suppresses all output.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • NullHandler

        public NullHandler()
    • Method Detail

      • doPublish

        protected void doPublish​(LogRecord record)
        Publish a LogRecord.

        The logging request was made initially to a Logger object, which initialized the LogRecord and forwarded it here.

        The Handler is responsible for formatting the message, when and if necessary. The formatting should include localization.

        Specified by:
        doPublish in class AbstractLogHandler
        Parameters:
        record - description of the log event. A null record is silently ignored and is not published