Class ConsoleAppender<E>

  • All Implemented Interfaces:
    Appender<E>, ContextAware, FilterAttachable<E>, LifeCycle
    Direct Known Subclasses:
    JansiConsoleAppender

    public class ConsoleAppender<E>
    extends OutputStreamAppender<E>
    ConsoleAppender appends log events to System.out or System.err using a layout specified by the user. The default target is System.out.

     

    For more information about this appender, please refer to the online manual at http://logback.qos.ch/manual/appenders.html#ConsoleAppender

    This appender does not own the console streams it writes to. On stop it flushes those streams but does not close them, so process-wide stdout/stderr (and Jansi streams wrapping them) remain usable after reconfiguration.

    Author:
    Ceki Gülcü, Tom SH Liu, Ruediger Dohna
    See Also:
    logback issue #1063