public class LogFileWriter
extends java.lang.Object
| 构造器和说明 |
|---|
LogFileWriter(xyz.noark.log.LogPath path) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
output(LogEvent event,
char[] text)
输出到文件.
|
void |
recordToFile(java.time.LocalDateTime logTime,
char[] text)
记录到文件.
|
public void output(LogEvent event, char[] text)
event - 日志消息text - 输出内容public void recordToFile(java.time.LocalDateTime logTime,
char[] text)
throws java.io.IOException
logTime - 日志时间text - 日志文本java.io.IOException - 记录时可能会抛出IO异常