serilog/serilog (Serilog)
### [`v2.12.0`](https://redirect.github.com/serilog/serilog/releases/tag/v2.12.0)
#### Highlights of 2.12.0
##### Improved and expanded `enable` support
A huge number of commits have gone into completing and refining non-null reference type annotations, which now cover the entire public Serilog API. The Serilog project itself now builds with non-null reference type checking globally enabled :tada:
##### `IAsyncDisposable` support
Sinks that need to flush changes using asynchronous APIs can now implement `IAsyncDisposable` and prevent the possibility of deadlocking while waiting for tasks to complete.
To drive this, `Logger` can now be disposed via `using async`:
```csharp
await using var log = new LoggerConfiguration().CreateLogger();
```
and the `Log` class provides `Log.CloseAndFlushAsync()`:
```csharp
await Log.CloseAndFlushAsync();
```
##### `DateOnly` and `TimeOnly` support
The `DateOnly` and `TimeOnly` types introduced in .NET 6 are now correctly handled as scalar values when capturing.
#### Merged PRs
- [#1713](https://redirect.github.com/serilog/serilog/issues/1713), [#1716](https://redirect.github.com/serilog/serilog/issues/1716), [#1715](https://redirect.github.com/serilog/serilog/issues/1715), [#1722](https://redirect.github.com/serilog/serilog/issues/1722), [#1721](https://redirect.github.com/serilog/serilog/issues/1721), [#1720](https://redirect.github.com/serilog/serilog/issues/1720), [#1729](https://redirect.github.com/serilog/serilog/issues/1729) - improved non-null reference type annotations ([@SimonCropp](https://redirect.github.com/SimonCropp))
- [#1702](https://redirect.github.com/serilog/serilog/issues/1702) - `DateOnly` and `TimeOnly` support ([@SimonCropp](https://redirect.github.com/SimonCropp))
- [#1764](https://redirect.github.com/serilog/serilog/issues/1764), [#1703](https://redirect.github.com/serilog/serilog/issues/1703), [#1708](https://redirect.github.com/serilog/serilog/issues/1708), [#1709](https://redirect.github.com/serilog/serilog/issues/1709), [#1712](https://redirect.github.com/serilog/serilog/issues/1712), [#1724](https://redirect.github.com/serilog/serilog/issues/1724), [#1730](https://redirect.github.com/serilog/serilog/issues/1730), [#1747](https://redirect.github.com/serilog/serilog/issues/1747) - build and dependency updates ([@SimonCropp](https://redirect.github.com/SimonCropp))
- [#1723](https://redirect.github.com/serilog/serilog/issues/1723), [#1728](https://redirect.github.com/serilog/serilog/issues/1728), [#1731](https://redirect.github.com/serilog/serilog/issues/1731), [#1732](https://redirect.github.com/serilog/serilog/issues/1732), [#1734](https://redirect.github.com/serilog/serilog/issues/1734), [#1735](https://redirect.github.com/serilog/serilog/issues/1735), [#1733](https://redirect.github.com/serilog/serilog/issues/1733), [#1736](https://redirect.github.com/serilog/serilog/issues/1736), [#1739](https://redirect.github.com/serilog/serilog/issues/1739), [#1746](https://redirect.github.com/serilog/serilog/issues/1746), [#1745](https://redirect.github.com/serilog/serilog/issues/1745), [#1741](https://redirect.github.com/serilog/serilog/issues/1741), [#1742](https://redirect.github.com/serilog/serilog/issues/1742) - code clean-up and modernization ([@SimonCropp](https://redirect.github.com/SimonCropp))
- [#1750](https://redirect.github.com/serilog/serilog/issues/1750) - `IAsyncDisposable` support for `Logger` and sinks ([@nblumhardt](https://redirect.github.com/nblumhardt))
- [#1699](https://redirect.github.com/serilog/serilog/issues/1699) - fix some XDOC documentation ([@sungam3r](https://redirect.github.com/sungam3r))
- [#1719](https://redirect.github.com/serilog/serilog/issues/1719) - remove redundant `!` operator from `null` in conditions ([@sungam3r](https://redirect.github.com/sungam3r))
- [#1725](https://redirect.github.com/serilog/serilog/issues/1725) - introduce file-scoped namespaces ([@sungam3r](https://redirect.github.com/sungam3r))
- [#1700](https://redirect.github.com/serilog/serilog/issues/1700), [#1704](https://redirect.github.com/serilog/serilog/issues/1704), [#1707](https://redirect.github.com/serilog/serilog/issues/1707) - more nulllable annotation updates ([@nblumhardt](https://redirect.github.com/nblumhardt))
- [#1711](https://redirect.github.com/serilog/serilog/issues/1711) - fix support for `ValueTuple` ([@SimonCropp](https://redirect.github.com/SimonCropp))
### [`v2.11.0`](https://redirect.github.com/serilog/serilog/releases/tag/v2.11.0)
- [#1503](https://redirect.github.com/serilog/serilog/issues/1503) - make some local functions `static` to avoid scope capture ([@SimonCropp](https://redirect.github.com/SimonCropp))
- [#1561](https://redirect.github.com/serilog/serilog/issues/1561) - add support for collections/`string[]` to key-value settings ([@stochmal](https://redirect.github.com/stochmal))
- [#1588](https://redirect.github.com/serilog/serilog/issues/1588), [#1591](https://redirect.github.com/serilog/serilog/issues/1591), [#1593](https://redirect.github.com/serilog/serilog/issues/1593), [#1594](https://redirect.github.com/serilog/serilog/issues/1594), [#1597](https://redirect.github.com/serilog/serilog/issues/1597) - nullable reference type annotations and language version updates ([@SimonCropp](https://redirect.github.com/SimonCropp))
- [#1595](https://redirect.github.com/serilog/serilog/issues/1595) - `net5.0` target ([@nblumhardt](https://redirect.github.com/nblumhardt))
- [#1652](https://redirect.github.com/serilog/serilog/issues/1652) - fix capturing of anonymous types in .NET interactive ([@KZedan](https://redirect.github.com/KZedan))
- [#1641](https://redirect.github.com/serilog/serilog/issues/1641) - corrected documentation comments for `MessageTemplateFormatMethod` ([@JinsPeter](https://redirect.github.com/JinsPeter))
- [#1635](https://redirect.github.com/serilog/serilog/issues/1635) - fix destructuring of `Memory`/`ReadOnlyMemory` and non-reflection-compatible properties e.g. of type `Span` ([@skomis-mm](https://redirect.github.com/skomis-mm))
- [#1625](https://redirect.github.com/serilog/serilog/issues/1625) - update issue template ([@augustoproiete](https://redirect.github.com/augustoproiete))
- [#1664](https://redirect.github.com/serilog/serilog/issues/1664) - update `ILogger` documentation ([@erichiller](https://redirect.github.com/erichiller))
### [`v2.10.0`](https://redirect.github.com/serilog/serilog/releases/tag/v2.10.0)
- [#1370](https://redirect.github.com/serilog/serilog/issues/1370), [#1374](https://redirect.github.com/serilog/serilog/issues/1374) - improve test coverage ([@rafaelsc](https://redirect.github.com/rafaelsc))
- [#1371](https://redirect.github.com/serilog/serilog/issues/1371), [#1377](https://redirect.github.com/serilog/serilog/issues/1377), [#1429](https://redirect.github.com/serilog/serilog/issues/1429), [#1445](https://redirect.github.com/serilog/serilog/issues/1445) - documentation updates ([@perjahn](https://redirect.github.com/perjahn), [@morgankenyon](https://redirect.github.com/morgankenyon), [@rafaelsc](https://redirect.github.com/rafaelsc), [@JakenVeina](https://redirect.github.com/JakenVeina))
- [#1378](https://redirect.github.com/serilog/serilog/issues/1378), [#1392](https://redirect.github.com/serilog/serilog/issues/1392) - build fixes ([@nblumhardt](https://redirect.github.com/nblumhardt))
- [#1477](https://redirect.github.com/serilog/serilog/issues/1477) - don't fail to log when `ToString()` throws an exception ([@rafaelsc](https://redirect.github.com/rafaelsc))
- [#1435](https://redirect.github.com/serilog/serilog/issues/1435) - `netstandard2.1` support and default implementations for `ILogger` methods ([@skomis-mm](https://redirect.github.com/skomis-mm))
- [#1442](https://redirect.github.com/serilog/serilog/issues/1442) - `MinimumLevel.Override()` runtime optimizations ([@skomis-mm](https://redirect.github.com/skomis-mm))
- [#1463](https://redirect.github.com/serilog/serilog/issues/1463) - fix disposal of wrapped sinks through `LoggerSinkConfiguration.Wrap()`
- [#1449](https://redirect.github.com/serilog/serilog/issues/1449) - allow exceptions to bubble up through wrapped aggregate sinks ([@augustoproiete](https://redirect.github.com/augustoproiete))
- [#1466](https://redirect.github.com/serilog/serilog/issues/1466) - internal wrapper sink refactoring ([@nblumhardt](https://redirect.github.com/nblumhardt))
- [#1427](https://redirect.github.com/serilog/serilog/issues/1427), [#1452](https://redirect.github.com/serilog/serilog/issues/1452), [#1467](https://redirect.github.com/serilog/serilog/issues/1467) - when `ToString()` on a logged object returns `null`, serialize as `""` ([@rafaelsc](https://redirect.github.com/rafaelsc), [@nblumhardt](https://redirect.github.com/nblumhardt))
- [#1472](https://redirect.github.com/serilog/serilog/issues/1472) - improve handling of minimum level overrides in sub-loggers ([@skomis-mm](https://redirect.github.com/skomis-mm))
Configuration
š Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
š¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
ā» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
š Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
2.9.0
->2.12.0
Release Notes
serilog/serilog (Serilog)
### [`v2.12.0`](https://redirect.github.com/serilog/serilog/releases/tag/v2.12.0) #### Highlights of 2.12.0 ##### Improved and expanded `Configuration
š Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
š¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
ā» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
š Ignore: Close this PR and you won't be reminded about this update again.