Set the log4net-1.2.0-beta8 in the project's assemblyInfo.cs file
[Assembly: log4net.config.domconfiguratrattribute (Watch = true)] Add and edit the project configuration file (default as app.config), the content is as follows:
Xml version = "1.0" encoding = "utf-8"?> configSections> layout> appender> root> Logger> log4net> configuration>
The following statement is used in the program code ... Using log4net; use loG4net.config; ... private static ilog log = logmanager.getlogger (Testclass)); ... log.info ("this is a test!") ; ok! Take