public class ConsoleAppender<E> extends OutputStreamAppender<E>
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#ConsoleAppenderConstructor and Description |
---|
ConsoleAppender() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTarget()
Returns the current value of the target property.
|
boolean |
isWithJansi() |
void |
setTarget(java.lang.String value)
Sets the value of the Target option.
|
void |
setWithJansi(boolean withJansi)
If true, this appender will output to a stream which
|
void |
start()
Checks that requires parameters are set and if everything is in order,
activates this appender.
|
getEncoder, getOutputStream, isImmediateFlush, setEncoder, setImmediateFlush, setLayout, setOutputStream, stop
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toString
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
public void setTarget(java.lang.String value)
public java.lang.String getTarget()
setTarget(java.lang.String)
.public void start()
OutputStreamAppender
start
in interface LifeCycle
start
in class OutputStreamAppender<E>
public boolean isWithJansi()
public void setWithJansi(boolean withJansi)
withJansi
- Copyright © 2010 - 2020 Adobe. All Rights Reserved