Col*_*e W 28 c# windows logging
我正在寻找一种新的统一日志记录解决方案,用于我们的新系列产品,我想看看Stack Overflow上的一些人的想法.我们需要记录各种应用程序:ASP .net,Windows服务,Web服务,wpf应用程序等.我们只是一个Windows商店.
我们对日志记录解决方案的一些要求包括:
1)日志文件管理
- Ability to split files up over a certain size
- Ability to auto archive/delete after certain period of time
Run Code Online (Sandbox Code Playgroud)
2)能够发送关于记录的某些类型的消息的电子邮件(例如错误)
3)能够将消息写入Windows事件日志
- We need to be able to specify where it's being written in the event log.
It would also be nice if it would automatically create the event log source if it does exist.
Run Code Online (Sandbox Code Playgroud)
我已经开始关注nLog,windows trace和log4net.我不仅限于这3只,只是在搜索时出现了很多.
RQD*_*QDQ 17
log4net永远是一个不错的选择.
http://logging.apache.org/log4net/
HuB*_*eZa 11
使用.NET常用日志记录.您可以稍后选择特定的提供程序(NLog,CLog,log4net ...),甚至可以创建自定义提供程序.
归档时间: |
|
查看次数: |
6504 次 |
最近记录: |