What is Log4net?
Log4net is an open source library that allows .NET applications to log output to a variety of sources (e.g., The console, SMTP or files). Log4net is a port of the popular log4J library used in Java.
The framework is built on the concept of layers and has 4 main components: Logger, Repository, Appender, and Layout.
1 - OFF - nothing gets logged (cannot be called)
2 - FATAL
3 - ERROR
4 - WARN
5 - INFO
6 - DEBUG
7 - ALL - everything gets logged (cannot be called)
What Appender support?
Console Appender, File Appender, Rolling File Appender, ADO.NET Appender, MSMQ?
Message Queuing (MSMQ) technology enables applications running at different times to communicate across heterogeneous networks and systems that may be temporarily offline. Applications send messages to queues and read messages from queues. The following illustration shows how a queue can hold messages that are generated by multiple sending applications and read by multiple receiving applications.
Implement override AppenderSkeleton ...
Don't forget RenderLayout and two config (QueueName, LabelLayout)
Add a new appender for log4net
Let me know if you would like me to expound on any area listed above or if you have an issue using log4net.Record information on MSMQ allows you to distribute the actions to be taken at every level of log, it's great solution of enterprise application where exist big lots of message log.
Thanks, Happy coding :)