Skip to content

Commit 8fd9fb0

Browse files
committed
NLog v6 - Preview1 (GelfTarget + SyslogLayout)
1 parent 908f011 commit 8fd9fb0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ custom property-names with underscore `_`.
147147
</extensions>
148148

149149
<targets async="true">
150-
<target xsi:type="Gelf" name="GelfTcp" address="tcp://localhost:12200" newLine="true" lineEnding="Null">
151-
<GelfField name="MyPropertyName" layout="MyPropertyValue" />
152-
</target>
150+
<target xsi:type="Gelf" name="GelfTcp" address="tcp://localhost:12200" newLine="true" lineEnding="Null">
151+
<GelfField name="MyPropertyName" layout="MyPropertyValue" />
152+
</target>
153153
</targets>
154154

155155
<rules>
@@ -180,11 +180,11 @@ The `SyslogLayout` supports both RFC-3164 (simple) + RFC-5424 (structured) loggi
180180
</extensions>
181181

182182
<targets async="true">
183-
<target xsi:type="SysLog" name="SyslogTcp" address="tcp://localhost:514">
184-
<Rfc3164>false</Rfc3164>
185-
<Rfc5424>true</Rfc5424>
186-
<StructuredDataParam name="MyPropertyName" layout="MyPropertyValue" />
187-
</target>
183+
<target xsi:type="SysLog" name="SyslogTcp" address="tcp://localhost:514">
184+
<Rfc3164>false</Rfc3164>
185+
<Rfc5424>true</Rfc5424>
186+
<StructuredDataParam name="MyPropertyName" layout="MyPropertyValue" />
187+
</target>
188188
</targets>
189189

190190
<rules>

0 commit comments

Comments
 (0)