我正在考虑更换新的统一日志记录解决方案,用于我们新产品线的使用,并想知道Stack Overflow上的一些人的想法。我们需要记录各种应用程序的日志:ASP .net、Windows服务、web服务、wpf应用等等。我们只使用Windows操作系统。
我们对日志记录解决方案的一些要求包括: 1)日志文件管理。
我们对日志记录解决方案的一些要求包括: 1)日志文件管理。
- Ability to split files up over a certain size
- Ability to auto archive/delete after certain period of time
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.
我已经开始研究nLog、Windows Trace和log4net。我不仅限于这三个,只是在搜索时经常出现。