Class AbstractWriterAppender<M extends WriterManager>

    • Field Detail

      • immediateFlush

        protected final boolean immediateFlush
        Immediate flush means that the underlying writer will be flushed at the end of each append operation. Immediate flush is slower but ensures that each append request is actually written. If immediateFlush is set to false, then there is a good chance that the last few logs events are not actually written to persistent media if and when the application crashes.
    • Method Detail

      • append

        public void append​(LogEvent event)
        Actual writing occurs here.

        Most subclasses will need to override this method.

        Parameters:
        event - The LogEvent.
      • getManager

        public M getManager()
        Gets the manager.
        Returns:
        the manager.
      • stop

        public boolean stop​(long timeout,
                            TimeUnit timeUnit)
        Description copied from class: AbstractFilterable
        Cleanup the Filter.
        Specified by:
        stop in interface LifeCycle2
        Overrides:
        stop in class AbstractFilterable
        Parameters:
        timeout - the maximum time to wait
        timeUnit - the time unit of the timeout argument
        Returns:
        true if the receiver was stopped cleanly and normally, false otherwise.