Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Event Viewer and log4net

Tags:

c#

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.

like image 748
jitm Avatar asked Apr 08 '10 09:04

jitm


People also ask

Where are log4net logs stored?

You can configure the log4net. config file to create log files. The file is located in the webroot\App_data directory of the installation. The different log files are described in Services logs.

What is the use of log4net DLL?

dll to log information that might be beneficial for error tracking and other tracing issues. My new article states how to use the Log4net's external Log4net. dll to log information that might be beneficial for error tracking and other tracing issues.

What is log4net in asp net?

Log4Net is a framework for implementing logging mechanisms. It is an open source framework. Log4net provides a simple mechanism for logging information to a variety of sources. Information is logged via one or more loggers.


1 Answers

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.

like image 101
João Angelo Avatar answered Oct 14 '22 05:10

João Angelo