NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet, #7 most downloaded on NuGet
Simple .NET logging with fully-structured events
Latest stable
4.4.0
Last release 29 days ago
23 Oct 2026
Ships fairly regularly
a new release about every 3 weeks
Some releases are documented
notes for 26 of the last 60 stable releases
1 version withdrawn
withdrawn after publishing
127 years old
602 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Emit SelfLog warning when extra arguments are provided by @matantsach in #2222
SelfMetrics by @nblumhardt in #2237Full Changelog: v4.3.1...v4.4.0
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Remove SourceLink by @SimonCropp in #2183
Full Changelog: v4.3.0...v4.3.1
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
@vanni-giachin made their first contribution in #2149
LogEvent.AddPropertyIfAbsent(ILogEventPropertyFactory, ...) overload that helps avoid allocations (@vanni-giachin)LogContext.Push() overloads accepting IEnumerable<ILogEventEnricher> and ReadOnlySpan<ILogEventEnricher> (@SimonCropp)Full Changelog: v4.2.0...v4.3.0
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
@WAcry made their first contribution in #2132
RuntimeHelpers.GetHashCode() in message template cache comparer (@sungam3r)net9.0 TFM (@nblumhardt)ILogEventSink (@erichiller)Full Changelog: v4.1.0...v4.2.0
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
IBatchedLogEventSink batch retry scheduling has changed in this version. The default configuration still tries failed batches for approximately ten mi
BatchingOptions.RetryTimeLimit and update retry scheduling algorithm (@nblumhardt)IBatchedLogEventSink batch retry scheduling has changed in this version. The default configuration still tries failed batches for approximately ten minutes, but the BufferingTimeLimit no longer implicitly causes the retry time to be extended or reduced. If you need a specific retry time, set BatchingOptions.RetryTimeLimit, which reliably controls retry time.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
#2094 - remove boxing and string allocations in output template formatting ( @epeshk ) #2103 - don't capture properties with private get accessors ( @
get accessors (@nblumhardt)IDisposable in Log.CloseAndFlushAsync() when the target logger is not IAsyncDisposable (@nblumhardt)Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
#2090 — when capturing structured values, reuse HashSet instances, reduce LINQ usage, avoid reallocating string[] to improve performance and cut GC pr
HashSet instances, reduce LINQ usage, avoid reallocating string[] to improve performance and cut GC pressure (@nblumhardt)Major.Minor.0.0 assembly versioning (@nblumhardt)Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
> If you're deploying to .NET Framework, note that Serilog's assembly version number has been unpinned from the long-running historical 2.0.0 default,
If you're deploying to .NET Framework, note that Serilog's assembly version number has been unpinned from the long-running historical
2.0.0default, and now matches the package version precisely. If you encounter issues, ensure your build is generating valid assembly binding redirects.
Sinks that need batching functionality can now be easily written, without any additional package dependencies, by implementing IBatchedLogEventSink:
class MyBatchedSink: IBatchedLogEventSink
{
public Task EmitBatchAsync(IReadOnlyCollection<LogEvent> batch)
{
// Send a batch of log events...
}
}
Batched sinks can be added using WriteTo.Sink(IBatchedLogEventSink, ...) - they're given first-class consideration just like regular un-batched sinks.
The built-in batching implementation is based on System.Threading.Channels and draws on the original Serilog.Sinks.PeriodicBatching package (now in maintenance-mode), to provide a full-featured, efficient, async-native batching implementation.
By setting an experimental AppContext switch, message templates can be used to capture dotted names, which are required when using some logging schemas.
AppContext.SetSwitch("Serilog.Parsing.MessageTemplateParser.AcceptDottedPropertyNames", true);
Log.Information("Running as {user.name}", Environment.UserName);
// Captures {"user.name": "nblumhardt"}
While currently experimental and unsupported, this flag is intended to help the ecosystem evaluate and prepare for dotted name support in a future Serilog release.
UtcTimestamp as a built-in token in output templates (@MatthewHays)ReusableStringWriter (@nblumhardt)LogEvent.UnstableAssembleFromParts() (@nblumhardt)IBatchedLogEventSink and WriteTo.Sink(IBatchedLogEventSink) (@nblumhardt)LoggerSinkConfiguration.CreateSink() and redesign .Wrap() (@nblumhardt, @bartelink)MessageTemplateParser performance, switch to allow . in captured property names (@nblumhardt)} in message template format specifiers (@Insomniak47)Nothing published for this version
One column per quarter.