NLog 6.0 with AOT support

21 Jun 2025

NLog v6 includes the following major changes:

  • Support Ahead-of-Time (AOT) builds without warnings.
  • Support Nullable references.
  • Support ReadOnlySpan to reduce memory allocations.
  • LogFactory supports FlushAsync and IDisposableAsync.
  • FileTarget removed support for ConcurrentWrites.
  • FileTarget refactored file-archive-logic with ArchiveSuffixFormat.

NLog v6 has reduced its footprint by extracting features into separate nuget-packages:

See also List of major changes in NLog v6 for more details.

Many other improvements

Full list of all changes: NLog 6.0 Pull Requests

Comments and feedback are welcome.

Credits

Additional thanks to all contributers, since last major release: