Skip to content

Commit 6d3e4be

Browse files
committed
NLog v6 - Preview1 (XmlReader)
1 parent 3a65acb commit 6d3e4be

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

_posts/2025-04-29-nlog-6-0-major-changes.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -317,12 +317,12 @@ Alternative one can setup custom subscriber to NLog `InternalLogger.InternalEven
317317

318318
### NLog XmlParser replaces XmlReader
319319

320-
The .NET `System.Xml.XmlReader` is a heavy dependency that both loads XML using HttpClient, and support
321-
code generation to optimize serialization for types. To reduce dependencies and minimize AOT-build-filesize,
322-
then NLog now includes its own XML-parser.
320+
The .NET `System.Xml.XmlReader` is a heavy dependency that depend on HttpClient for loading external XML,
321+
and depend on IL-code-generation to optimize type serialization. To reduce dependencies and minimize AOT-build-filesize,
322+
then NLog now includes its own basic XML-parser.
323323

324-
It could have been nice if Microsoft could refactor `System.Xml.XmlReader`,
325-
so it only introduced a minimal AOT-footprint, but that is probably too late.
324+
It could have been nice if Microsoft could refactor `System.Xml.XmlReader`, so it only introduced a minimal AOT-footprint,
325+
but that is probably too late.
326326

327327
The NLog XML-parser only provides basic XML support, but it should be able to load any XML file that was
328328
working with NLog v5.

0 commit comments

Comments
 (0)