EL Logging 有类似 Nlog 内部日志的故障排除工具吗?
NLog 有一个内部日志,开发人员可以使用它来解决日志记录问题。企业库日志记录是否有类似的东西,我可以用它来找出为什么我的日志消息没有到达任何地方?
NLog has an internal log that the developer can use to troubleshoot issues with logging. Does Enterprise Library Logging have anything like that that I can use to figure out why my log messages aren't going anywhere?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一个“记录错误和警告”特殊类别。如果日志基础设施本身存在问题,则会记录在那里。您可以将其指向任何跟踪侦听器 - 默认情况下它会转到 Windows 事件日志。
当然,如果错误的跟踪侦听器出现问题,事情就会丢失。你只能在这一只上堆放这么多的海龟。
There's a "Logging Errors and Warnings" special category. If there's a problem with the logging infrastructure itself, it'll get logged there. You can point this at any trace listener - by default it goes to the Windows event log.
Of course, if you have a problem with the trace listener for the errors, things get lost. There's only so many turtles you can stack on this one.