Class ConsoleAppender<E>

  • All Implemented Interfaces:
    Appender<E>, ContextAware, FilterAttachable<E>, LifeCycle

    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

    • Constructor Detail

      • ConsoleAppender

        public ConsoleAppender()
    • Method Detail

      • setTarget

        public void setTarget​(String value)
        Sets the value of the Target option. Recognized values are "System.out" and "System.err". Any other value will be ignored.
      • getTarget

        public String getTarget()
        Returns the current value of the target property. The default value of the option is "System.out".

        See also setTarget(java.lang.String).

      • isWithJansi

        public boolean isWithJansi()
      • setWithJansi

        public void setWithJansi​(boolean withJansi)
        If true, this appender will output to a stream which
        withJansi -