NLog 4.0 发布 - 开源中国社区
NLog 4.0 发布
oschina 2015年06月13日

NLog 4.0 发布

oschina oschina 发布于2015年06月13日 收藏 18 评论 4

免费体验IBM Cloud,构建Iot应用 >>>  

NLog 4.0 发布,此版本解决了超过 100 个 issues,现已提供在 NuGet

新特性

  • Zipped file archives (.Net 4.5 and higher)

  • Consistent logging of exceptions (breaking change)

  • Conditional logging

  • Auto load extensions

  • AllEventProperties layout renderer

  • Writing to JSON

  • Improved loggingRule final behavior (breaking change)

  • Added Eventlog.EntryType

Bug 修复

  • The default value of DatabaseTarget.CommandType could lead to exceptions

  • If the XML was broken (invalid), auto reload would be disabled -  the application needed a restart before reading the changed  configuration.

  • The Logmanager.GetCurrentClassLogger was not thread-safe and with many concurrent calls it would throw an exception.

  • Various fixes to the archiving of files.

  • Bugfix: WebserviceTarget wrote encoded UTF-8 preamble.

重要改进

  • LoggingRule.Final behaviour has been changed.

  • The methods of logging exception data has been changed.

  • The webservice target won’t write a BOM with UTF-8 (default, can be set)

  • All properties that have been changed to accept layout renderers.

更多改进请看发行说明

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处,尊重他人劳动共创开源社区。
转载请注明:文章转载自 开源中国社区 [http://www.oschina.net]
本文标题:NLog 4.0 发布
分享
评论(4)
最新评论
0
70706971
0
一直在使用
0
我也觉得这个蛮好的,有时我们并不需要那么复杂的的日志系统
0
.net下一直在用,很简单,很方便,也很强大!至少个人认为比Log4简单些!
顶部