NLog 2.0 Beta 1 Release Notes

NLog 2.0 Beta 1 has been released and is available for download from

What is NLog? NLog is a popular logging platform for .NET with rich log routing and management capabilities. It makes it easy to produce and manage high-quality logs for your application regardless of its size or complexity. NLog is open source software, distributed under the terms of BSD license and source is available on GitHub.

NLog 2.0 release is focused on adding support for new platforms (Silverlight, .NET Framework 4), improving logging architecture and manageability and addressing most frequently reported user issues.

Platform support

The following platforms are supported:

Support for .NET 1.x, .NET Compact Framework 1.0 has been removed in this release.

New features

Since there is no StackTrace class in .NET Compact Framework, the implementation uses relatively slow method to get the calling class, so using it in a loop or performance-sensitive code is not recommended)
Logger logger = LogManager.GetCurrentClassLogger();
int i, j, k;

// message will not be computed if not necessary, thus helping improve performance when logs are disabled
logger.Info(() => "message" + i + ", " + j + "," + k);

Target updates

Architectural updates

Backwards compatibility and breaking changes

Logging API and configuration file are generally backwards compatible, but programmatic configuration APIs are not. In order to support new platforms and features, NLog codebase had to be refactored which in some cases introduced breaking changes. See NLog website for backwards compatibility and breaking change policy.

In addition to that, please refer to the following articles for information about further behavior changes:

comments powered by Disqus
keyboard-centric bug tracker continuous integration server