jitm
jitm

Reputation: 2597

Windows Event Viewer and log4net

I have idea to write errors from my application to the Windows Event Viewer using log4net. Can I do it or not? And if I can, how :). Thank you.

Upvotes: 31

Views: 30160

Answers (1)

João Angelo
João Angelo

Reputation: 57688

log4net supports a EventLogAppender so, yes, you can do it. How? You can start by checking the log4net configuration examples for that appender.

If you encounter any specific problem you can update your question with more details so people can help you better.

Upvotes: 58

Related Questions