Class ConsoleAppender<E>

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

    @Deprecated(since="2022-01-27")
    public class ConsoleAppender<E>
    extends OutputStreamAppender<E>
    Deprecated.
    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

    • Constructor Detail

      • ConsoleAppender

        public ConsoleAppender()
        Deprecated.
    • Method Detail

      • setTarget

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

        public java.lang.String getTarget()
        Deprecated.
        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()
        Deprecated.
        Returns:
      • setWithJansi

        public void setWithJansi​(boolean withJansi)
        Deprecated.
        If true, this appender will output to a stream which
        Parameters:
        withJansi -
        Since:
        1.0.5