Method | Description | |
---|---|---|
Flush ( ) : void |
刷新所有日志文本流,确保所有修改已经写入。
|
|
Flush ( string filepath ) : void |
刷新指定日志文本流,确保所有修改已经写入。
|
|
WriteText ( string filepath, string content, |
对指定的文本日志文件写入一段文本
|
Method | Description | |
---|---|---|
GetWriter ( string filepath, |
||
WriteText ( TextFileWriter stream, string content, |
public static Flush ( string filepath ) : void | ||
filepath | string | |
return | void |
public static WriteText ( string filepath, string content, |
||
filepath | string | 日志文件路径 |
content | string | 文本内容 |
encoding | 文本编码 | |
flush | bool | 在写入后是否立即刷新日志流 |
return | void |