Package ch.qos.logback.core
Class ConsoleAppender<E>
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.UnsynchronizedAppenderBase<E>
-
- ch.qos.logback.core.OutputStreamAppender<E>
-
- ch.qos.logback.core.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 toSystem.outorSystem.errusing a layout specified by the user. The default target isSystem.out. For more information about this appender, please refer to the online manual at http://logback.qos.ch/manual/appenders.html#ConsoleAppender
-
-
Constructor Summary
Constructors Constructor Description ConsoleAppender()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetTarget()Deprecated.Returns the current value of the target property.booleanisWithJansi()Deprecated.voidsetTarget(java.lang.String value)Deprecated.Sets the value of the Target option.voidsetWithJansi(boolean withJansi)Deprecated.If true, this appender will output to a stream whichvoidstart()Deprecated.Checks that requires parameters are set and if everything is in order, activates this appender.-
Methods inherited from class ch.qos.logback.core.OutputStreamAppender
getEncoder, getOutputStream, isImmediateFlush, setEncoder, setImmediateFlush, setLayout, setOutputStream, stop
-
Methods inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toString
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
-
-
-
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 alsosetTarget(java.lang.String).
-
start
public void start()
Deprecated.Description copied from class:OutputStreamAppenderChecks that requires parameters are set and if everything is in order, activates this appender.- Specified by:
startin interfaceLifeCycle- Overrides:
startin classOutputStreamAppender<E>
-
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
-
-