public abstract class OutputStreamAppender extends AppenderSimple
限定符和类型 | 字段和说明 |
---|---|
protected java.io.PrintWriter |
out |
protected java.util.concurrent.locks.ReentrantLock |
SYNC_LOCK |
构造器和说明 |
---|
OutputStreamAppender() |
限定符和类型 | 方法和说明 |
---|---|
void |
append(LogEvent logEvent)
添加日志事件
|
protected void |
appendDo(Level level,
java.lang.String title,
java.lang.Object content) |
protected void |
blueln(java.lang.Object txt) |
protected void |
colorln(java.lang.String color,
java.lang.Object s) |
protected void |
greenln(java.lang.Object txt) |
protected void |
purpleln(java.lang.Object txt) |
protected void |
redln(java.lang.Object txt) |
protected void |
setOutput(java.io.PrintWriter writer) |
protected void |
yellowln(java.lang.Object txt) |
allowAppend
getName, setName, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultLevel
protected java.io.PrintWriter out
protected final java.util.concurrent.locks.ReentrantLock SYNC_LOCK
protected void setOutput(java.io.PrintWriter writer)
public void append(LogEvent logEvent)
AppenderSimple
append
在接口中 Appender
append
在类中 AppenderSimple
logEvent
- 日志事件protected void appendDo(Level level, java.lang.String title, java.lang.Object content)
appendDo
在类中 AppenderSimple
protected void redln(java.lang.Object txt)
protected void blueln(java.lang.Object txt)
protected void greenln(java.lang.Object txt)
protected void purpleln(java.lang.Object txt)
protected void yellowln(java.lang.Object txt)
protected void colorln(java.lang.String color, java.lang.Object s)