发布于 2016-12-26 00:31:44 | 173 次阅读 | 评论: 0 | 来源: 网友投递
log4net .NET日志工具
log4net是一个可以帮助程序员把日志信息输出到各种 不同目标的.net类库。它可以容易的加载到开发项目中,实现程序调试和运行的时候的日志信息输出,提供了比.net自己提供的debug类和trace 类的功能更多。log4net是从java下有卓越表现的log4j移植过来的。它是apache基金资助的项目的一部分。
AP车 log4net 2.0.6 发布了。
从 2.0.6 开始,.NET Core — 或更准确地说是 .NET Standard 1.3 — 已经成为一个支持的平台。请注意,使用 .NET Core 版本时,log4net 的几个功能不可用,特别是 .NET 标准的程序集不支持以下功能:
the ADO.NET appender
anything related to ASP.NET (trace appender and several pattern converters)
.NET Remoting
log4net.LogicalThreadContext and the associated properties and stack classes
the colored console appender
the event log appender
The NetSendAppender
The SMTP appender
DOMConfigurator
stack trace patterns
access to appSettings (neither the log4net section itself nor using the AppSettingsPatternConverter)
Access to "special paths" using the EnvironmentFolderPathPatternConverter
Impersonation of Windows accounts
更新内容
Bug 修复
[LOG4NET-508] - NAnt release build is not optimized
[LOG4NET-512] - Thread safety issue in Hierarchy.cs
[LOG4NET-527] - broken link on config-examples.html
[LOG4NET-529] - Possible thread-safety bug in LoggingEvent
[LOG4NET-536] - Can't build for NETCF-2.0
改进
[LOG4NET-530] - Use UTC internally to avoid ambiguous timestamps
新特性
[LOG4NET-467] - Is .NET Core, will be supported in the near future, or not
[LOG4NET-511] - API to flush appenders
[LOG4NET-526] - Add appSetting conversion pattern to PatternString
下载地址