You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,26 @@ All notable changes to this project will be documented in this file.
4
4
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
7
+
## [1.4.0][1.4.0] - 2025-09-19
8
+
9
+
- Properties whose values are `null` are now always serialized with a `value` attribute. Thanks to @southernprogrammer for reporting this issue. See the [Null text](https://github.com/serilog-contrib/serilog-formatting-log4net#null-text) documentation in the README for more information.
10
+
11
+
Before (1.3.1)
12
+
13
+
```xml
14
+
<log4net:properties>
15
+
<log4net:dataname="key" />
16
+
</log4net:properties>
17
+
```
18
+
19
+
After (1.4.0)
20
+
21
+
```xml
22
+
<log4net:properties>
23
+
<log4net:dataname="key"value="(null)" />
24
+
</log4net:properties>
25
+
```
26
+
7
27
## [1.3.1][1.3.1] - 2025-04-30
8
28
9
29
- Log events coming from `Microsoft.Extensions.Logging` are now identified if they have **either** an `EventId.Id` or an `EventId.Name` property. Previously, log events coming from `Microsoft.Extensions.Logging` were identified if they had **both** an `Id` and a `Name` property.
@@ -139,7 +159,8 @@ Still trying to figure out how to make everything fit together with [MinVer](htt
By default, when a property value is `null`, the text used for its representation is `(null)`. This can be changed with the `UseNullText()` configuration method.
114
+
115
+
Here's how to configure the formatter to use `🔷null🔷` when a property value is `null`.
To restore compatibility with version 1.3.1 and earlier (which produced a non-compatible XML), `UseNullText(null)` can be called.
130
+
109
131
### XML Namespace
110
132
111
133
You can remove the `log4net` XML namespace by calling `UseNoXmlNamespace()` on the options builder. This is useful if you want to spare some bytes and your log reader supports log4net XML events without namespace, like [Log4View](https://www.log4view.com) does.
0 commit comments