Class NullAppender

    • Constructor Detail

      • NullAppender

        public NullAppender()
    • Method Detail

      • getNullAppender

        public static NullAppender getNullAppender()
        Whenever you can, use this method to retreive an instance instead of instantiating a new one with new.
      • close

        public void close()
        Description copied from interface: Appender
        Release any resources allocated within the appender such as file handles, network connections, etc.

        It is a programming error to append to a closed appender.

      • getInstance

        @Deprecated
        public NullAppender getInstance()
        Deprecated.
        Use getNullAppender instead. getInstance should have been static.
        Whenever you can, use this method to retreive an instance instead of instantiating a new one with new.
      • requiresLayout

        public boolean requiresLayout()
        NullAppenders do not need a layout.
        Returns:
        true if a Layout is required.