2

I am currently using SmartInspect logging tool in my c# application, and now I am able to get the log files, and the log file is having extension ".sil" (ex:log-2013-04-04-08-22-05.sil"). Now my requirement is I need to read this log file from my c# application. I have tried all file reading concepts to read the log file but it's not working . Please suggests me a code how I will read the .sil file from a c# application.

When I am copying the file contents from SmartInspect logging tool and pasting in a normal txt file then it is working to get the file contents, but I am not able to read the .sil file using c# application.Please help...

4

2 回答 2

4

您需要实现自己的日志文件解析器。日志文件的格式记录在这里SmartInspect Log Formats and Protocols

正如我注意到的那样, SmartInspect 将其own format用于 ErrorLogging,我不使用XMLPlain Text

一个典型的*.sil文件开始像

典型的 sil 文件日志

您可以使用免费Redistributable Console的文件来阅读。

于 2013-04-08T06:31:27.857 回答
2

这里的 SmartInspect 开发人员之一。我们还有一个现成的 .NET SDK,允许您读取和处理 SmartInspect 日志文件:

http://www.gurock.com/smartinspect/extras/

于 2013-04-10T07:31:59.997 回答