문제

I have configured the Enterprise Library 5.0.505 Logging Application Block to log events from my .NET 4 application to a custom windows event log. 'Custom' meaning that the log is application-specific and shows up as an entry under the "Applications and Services Logs" in the Windows 7 Event Viewer MMC snap-in. I have followed the steps in the logging application block documentation to configure this correctly, including setting up the custom log, but the events are being logged to the default Application log instead. What is wrong?

도움이 되었습니까?

해결책

"Turn it off and on again". Windows seems to need restarting after creating a custom event log. After doing this, the log entries are saved in the custom log as expected.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top