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#ConsoleAppenderModifier and Type | Field and Description |
---|---|
protected ConsoleTarget |
target |
protected boolean |
withJansi |
encoder, lock
name, started
context
Constructor and Description |
---|
ConsoleAppender() |
Modifier and Type | Method and Description |
---|---|
String |
getTarget()
Returns the current value of the target property.
|
boolean |
isWithJansi() |
void |
setTarget(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.
|
append, closeOutputStream, getEncoder, getOutputStream, isImmediateFlush, setEncoder, setImmediateFlush, setLayout, setOutputStream, stop, subAppend, writeOut
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toString
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
protected ConsoleTarget target
protected boolean withJansi
public void setTarget(String value)
public 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 © 2005–2021 QOS.ch. All rights reserved.