C# Class FS.Log.Default.LogWrite

日志持久化工具
Mostra file Open project: FarseerNet/Farseer.Net

Public Methods

Method Description
Write ( string message, Exception exp ) : void

添加日志消息

Private Methods

Method Description
Add ( object obj ) : void

将对象添加到待持久化队列

InitTimer ( ) : void

初始化定时器(持久化到日志文件的任务)

LogWrite ( EumLogType logType, string filePath, int lazyTime ) : System

日志持久化工具

SendEmail ( CommonLog log ) : void

发送日志到邮件

Method Details

Write() public method

添加日志消息
public Write ( string message, Exception exp ) : void
message string 消息内容
exp System.Exception 异常
return void