LogWriter Class |
Namespace: Adf
The LogWriter type exposes the following members.
Name | Description | |
---|---|---|
LogWriter(String) |
初始化,若配置(AppSetting)Log:Path则为配置值,否则以当前应用程序目录下Log为目录
| |
LogWriter(String, String) |
初始化
|
Name | Description | |
---|---|---|
BuildPath |
获取日志路径
| |
BuildPath(String) |
获取日志路径
| |
Dispose |
资源释放
| |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
Flush |
刷新缓冲区
| |
Flush(String, String) |
刷新缓冲区
| |
GetHashCode |
用作特定类型的哈希函数。
(Inherited from Object.) | |
GetType |
获取当前实例的 Type。
(Inherited from Object.) | |
Line | Obsolete.
写入空行
| |
Line(String, Object) | Obsolete.
按行写入记录
| |
MemberwiseClone |
创建当前 Object 的浅表副本。
(Inherited from Object.) | |
OnWriting |
触发写入事件
| |
Pack | Obsolete.
记录一个打包的格式化日志记录
| |
TimeLine | Obsolete.
以时间起始的行
| |
TimerCallback |
缓冲区刷新回调
| |
ToString | (Inherited from Object.) | |
Write |
写入内容
| |
WriteLine |
写入空行
| |
WriteLine(String, Object) |
按行写入记录
| |
WritePack |
记录一个打包的格式化日志记录
| |
WriteTimeLine |
以时间起始的行
|
Name | Description | |
---|---|---|
Enable |
是否启用
| |
Encoding |
字符编码, 默认UTF8
| |
Extension |
日志文件扩展名,带点
| |
FlushInterval |
存储时间间隔(秒:seconds),0 则实时flush, 默认配置: Log:FlushInterval
| |
Manager |
管理器
| |
Name |
日志名称
| |
Path |
存储路径
|