Turn from:
Http://www.cnblogs.com/songhaipeng/p/3343606.html
Http://www.cnblogs.com/TianFang/archive/2013/03/09/2951819.html
In the project often encounter a variety of problems, how to find the problem as soon as possible, then only rely on the log, so a system of the log is perfect and reasonable is particularly important.
In the log management plug-in log4net quite popular, the following is a brief description of how to use.
Log4net's official website is http://logging.apache.org/log4net/download_log4net.cgi
If the English is better, you can directly see the official website of the tutorial, especially the Config section of the tutorial http://logging.apache.org/log4net/release/config-examples.html
The source code download URL for the following example tutorial is: log4net Example Project 2
1. Introduction of Log4net Components
Log4net using a concise tutorial