Constructor and Description |
---|
LoggerThread(OutputStream[] outputStreams)
构造函数
|
Modifier and Type | Method and Description |
---|---|
void |
addLogMessage(String msg)
增加消息
|
void |
closeAllOutputStreams()
关闭所有的OutputStream
|
void |
flush()
刷新日志到目标设备
|
OutputStream[] |
getOutputStreams()
获取日志输出流集合
|
boolean |
isFinished()
是否已经结束
|
boolean |
pause()
暂停日志输出
|
void |
run() |
void |
setOutputStreams(OutputStream[] outputStreams)
设置日志输出流集合
|
static LoggerThread |
start(OutputStream[] outputStreams)
获取 Web 访问日志记录对象
|
void |
unpause()
恢复日志输出
|
public LoggerThread(OutputStream[] outputStreams)
outputStreams
- 输出流数组public boolean isFinished()
public boolean pause()
public void unpause()
public OutputStream[] getOutputStreams()
public void setOutputStreams(OutputStream[] outputStreams)
outputStreams
- 输出流数组public void closeAllOutputStreams()
public void flush()
public void addLogMessage(String msg)
msg
- 消息字符串public static LoggerThread start(OutputStream[] outputStreams)
outputStreams
- 输出流数组Copyright © 2020 Voovan. All rights reserved.