Skip to content

Bump Serilog and Serilog.Enrichers.Thread#321

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/nuget/sample/Serilog.Sinks.Grafana.Loki.Sample/multi-21a4e5c606
Closed

Bump Serilog and Serilog.Enrichers.Thread#321
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/nuget/sample/Serilog.Sinks.Grafana.Loki.Sample/multi-21a4e5c606

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 1, 2026

Updated Serilog from 3.1.1 to 4.3.1.

Release notes

Sourced from Serilog's releases.

4.3.1

What's Changed

New Contributors

Full Changelog: serilog/serilog@v4.3.0...v4.3.1

4.3.0

What's Changed

  • #​2149 - LogEvent.AddPropertyIfAbsent(ILogEventPropertyFactory, ...) overload that helps avoid allocations (@​vanni-giachin)
  • #​2158 - use HTTPS in all README.md images and links (@​TimHess)
  • #​2163 - LogContext.Push() overloads accepting IEnumerable<ILogEventEnricher> and ReadOnlySpan<ILogEventEnricher> (@​SimonCropp)
  • #​2175, #​2178, #​2179 - fix AOT compatibility (@​agocke)

New Contributors

Full Changelog: serilog/serilog@v4.2.0...v4.3.0

4.2.0

What's Changed

  • #​2141 — stabilize and fully implement dotted identifiers in message templates (@​nblumhardt)
  • #​2028 — use RuntimeHelpers.GetHashCode() in message template cache comparer (@​sungam3r)
  • #​2138 — update to .NET 9 SDK, GitHub Actions build, net9.0 TFM (@​nblumhardt)
  • #​2132 — support capturing of multidimensional arrays (@​sungam3r, @​WAcry)
  • #​2136 — fix documentation for ILogEventSink (@​erichiller)

New Contributors

Full Changelog: serilog/serilog@v4.1.0...v4.2.0

4.1.0

  • #​2108 - failure listeners and fallback sinks (@​nblumhardt)
  • #​2120 - add BatchingOptions.RetryTimeLimit and update retry scheduling algorithm (@​nblumhardt)

Important note

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.

4.0.2

  • #​2094 - remove boxing and string allocations in output template formatting (@​epeshk)
  • #​2103 - don't capture properties with private get accessors (@​nblumhardt)
  • #​2095 - remove junk file (@​Numpsy)
  • #​2116 - fall back to IDisposable in Log.CloseAndFlushAsync() when the target logger is not IAsyncDisposable (@​nblumhardt)

4.0.1

  • #​2090 — when capturing structured values, reuse HashSet instances, reduce LINQ usage, avoid reallocating string[] to improve performance and cut GC pressure (@​nblumhardt)
  • #​2089 - allow capturing of non-anonymous structured values when trimming (@​nblumhardt)
  • #​2083 - use Major.Minor.0.0 assembly versioning (@​nblumhardt)

4.0.0

What's new in Serilog 4.0.0?

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, and now matches the package version precisely. If you encounter issues, ensure your build is generating valid assembly binding redirects.

Simple, robust, built-in batching support

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.

Experimental dotted name capturing

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.

Changes

  • #​2015 — breaking unpin assembly version (@​nblumhardt)
  • #​2045 — breaking use case-insensitive matching for level overrides (@​tillig)
  • #​2051 — breaking recognize UtcTimestamp as a built-in token in output templates (@​MatthewHays)
  • #​1979 — add tests for ReusableStringWriter (@​nblumhardt)
  • #​2016 — update TFMs (@​nblumhardt, @​bartelink)
  • #​2018 — add LogEvent.UnstableAssembleFromParts() (@​nblumhardt)
  • #​2044 — build updates for compatibility (@​tillig)
  • #​2027 — improve trimming annotations, compatibility switch for compiler-generated type support (@​agocke)
  • #​2055 — introduce IBatchedLogEventSink and WriteTo.Sink(IBatchedLogEventSink) (@​nblumhardt)
  • #​2060 — introduce LoggerSinkConfiguration.CreateSink() and redesign .Wrap() (@​nblumhardt, @​bartelink)
  • #​2063 — improve MessageTemplateParser performance, switch to allow . in captured property names (@​nblumhardt)
  • #​2064 — make message template alignment parsing match spec (@​Insomniak47)
  • #​2065 — allow any character except } in message template format specifiers (@​Insomniak47)
    ... (truncated)

Commits viewable in compare view.

Updated Serilog.Enrichers.Thread from 3.1.0 to 4.0.0.

Release notes

Sourced from Serilog.Enrichers.Thread's releases.

4.0.0

Commits viewable in compare view.

@dependabot dependabot Bot added .NET Pull requests that update .net code dependencies Pull requests that update a dependency file labels May 1, 2026
Bumps Serilog from 3.1.1 to 4.3.1
Bumps Serilog.Enrichers.Thread from 3.1.0 to 4.0.0

---
updated-dependencies:
- dependency-name: Serilog
  dependency-version: 4.3.1
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: Serilog.Enrichers.Thread
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/nuget/sample/Serilog.Sinks.Grafana.Loki.Sample/multi-21a4e5c606 branch from 93c1eba to fb7496a Compare May 5, 2026 11:48
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github May 5, 2026

Looks like these dependencies are no longer a dependency, so this is no longer needed.

@dependabot dependabot Bot closed this May 5, 2026
@dependabot dependabot Bot deleted the dependabot/nuget/sample/Serilog.Sinks.Grafana.Loki.Sample/multi-21a4e5c606 branch May 5, 2026 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .net code

Development

Successfully merging this pull request may close these issues.

0 participants