Logging Applicataion Block 组件记录信息时,记录下来的时间与实际不一值.如图所示:
解决方案:修改原代码。
|
文件名 |
LogEntry.cs |
|
命名空间 |
Microsoft.Practices.EnterpriseLibrary.Logging |
|
修改代码具体位置 |
377行 |
|
修改 |
原:this.TimeStamp = DateTime.UtcNow; 修改好:this.TimeStamp = DateTime.Now; |