Click or drag to resize
LogWriter Class
日志书写器
Inheritance Hierarchy
SystemObject
  AdfLogWriter

Namespace: Adf
Assembly: Adf (in Adf.dll) Version: 4.1.5549.27750
Syntax
public class LogWriter : IDisposable

The LogWriter type exposes the following members.

Constructors
  NameDescription
Public methodLogWriter(String)
初始化,若配置(AppSetting)Log:Path则为配置值,否则以当前应用程序目录下Log为目录
Public methodLogWriter(String, String)
初始化
Top
Methods
  NameDescription
Protected methodBuildPath
获取日志路径
Protected methodBuildPath(String)
获取日志路径
Public methodDispose
资源释放
Public methodEquals
确定指定的 Object 是否等于当前的 Object
(Inherited from Object.)
Protected methodFinalize
允许 Object 在“垃圾回收”回收 Object 之前尝试释放资源并执行其他清理操作。
(Inherited from Object.)
Public methodFlush
刷新缓冲区
Protected methodFlush(String, String)
刷新缓冲区
Public methodGetHashCode
用作特定类型的哈希函数。
(Inherited from Object.)
Public methodGetType
获取当前实例的 Type
(Inherited from Object.)
Public methodLine Obsolete.
写入空行
Public methodLine(String, Object) Obsolete.
按行写入记录
Protected methodMemberwiseClone
创建当前 Object 的浅表副本。
(Inherited from Object.)
Protected methodOnWriting
触发写入事件
Public methodPack Obsolete.
记录一个打包的格式化日志记录
Public methodTimeLine Obsolete.
以时间起始的行
Protected methodTimerCallback
缓冲区刷新回调
Public methodToString
返回表示当前 ObjectString
(Inherited from Object.)
Public methodWrite
写入内容
Public methodWriteLine
写入空行
Public methodWriteLine(String, Object)
按行写入记录
Public methodWritePack
记录一个打包的格式化日志记录
Public methodWriteTimeLine
以时间起始的行
Top
Properties
  NameDescription
Public propertyEnable
是否启用
Public propertyEncoding
字符编码, 默认UTF8
Public propertyExtension
日志文件扩展名,带点
Public propertyFlushInterval
存储时间间隔(秒:seconds),0 则实时flush, 默认配置: Log:FlushInterval
Public propertyManager
管理器
Public propertyName
日志名称
Public propertyPath
存储路径
Top
Events
  NameDescription
Public eventWriting
新写入事件
Top
See Also

Reference