http://blog.csdn.net/mars199/article/details/6669232
http://blog.csdn.net/zhoufoxcn/article/details/2220533
log4net
Tow method for adding log:
1 add the line code in the assembly
[assembly: log4net.Config.XmlConfigurator(ConfigFile = @"C:\Mingle\Lab\log4net.config", Watch = true)]
2 add the line code in cs file
log4net.Config.XmlConfigurator.Configure(new FileInfo(@"D:\Mingle\Lab\ConsoleApplication1\ConsoleApplication1\log4net.config"));