官方的 features 列表 * Support for multiple frameworks * Output to multiple logging targets * Hierarchical logging architecture * XML Configuration * Dynamic Configuration * Logging Context * Proven architecture * Modular and extensible design * High performance with flexibility
官方的 features 列表 * Support for multiple frameworks * Output to multiple logging targets * Hierarchical logging architecture * XML Configuration * Dynamic Configuration * Logging Context * Proven architecture * Modular and extensible design * High performance with flexibility
http://zzk.cnblogs.com/s?w=log4net
// Log4net配置文件加载
System.IO.FileInfo file = new System.IO.FileInfo(Server.MapPath("~/log4net.config"));
log4net.Config.XmlConfigurator.ConfigureAndWatch(file);
我完全可以自己写个方法把日志记录到文件啊,到底log4net有什么高明之处呢?
* Support for multiple frameworks
* Output to multiple logging targets
* Hierarchical logging architecture
* XML Configuration
* Dynamic Configuration
* Logging Context
* Proven architecture
* Modular and extensible design
* High performance with flexibility
* Support for multiple frameworks
* Output to multiple logging targets
* Hierarchical logging architecture
* XML Configuration
* Dynamic Configuration
* Logging Context
* Proven architecture
* Modular and extensible design
* High performance with flexibility