Enterprise Library 3.0 of Logging Application Block 使用异常解决(记录时间)
Posted on 2007-07-10 13:18 xuanfeng 阅读(444) 评论(0) 收藏 举报
场景:
Logging Applicataion Block 组件记录信息时,记录下来的时间与实际不一值.如图所示:

Logging Applicataion Block 组件记录信息时,记录下来的时间与实际不一值.如图所示:

解决方案:修改原代码。
|
文件名 |
LogEntry.cs |
|
命名空间 |
Microsoft.Practices.EnterpriseLibrary.Logging |
|
修改代码具体位置 |
377行 |
|
修改 |
原:this.TimeStamp = DateTime.UtcNow; 修改好:this.TimeStamp = DateTime.Now; |
浙公网安备 33010602011771号