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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With