Class ConsoleAppender

    • Constructor Detail

      • ConsoleAppender

        public ConsoleAppender()
    • Method Detail

      • close

        public void close()
        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.

      • requiresLayout

        public boolean requiresLayout()
        Configurators call this method to determine if the appender requires a layout. If this method returns true, meaning that layout is required, then the configurator will configure an layout using the configuration information at its disposal. If this method returns false, meaning that a layout is not required, then layout configuration will be skipped even if there is available layout configuration information at the disposal of the configurator..

        In the rather exceptional case, where the appender implementation admits a layout but can also work without it, then the appender should return true.

        Returns:
        true if a Layout is required.