Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Dec 4, 2025

Updated Serilog from 3.1.1 to 4.3.0.

Release notes

Sourced from Serilog's releases.

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.AspNetCore from 8.0.1 to 10.0.0.

Release notes

Sourced from Serilog.AspNetCore's releases.

10.0.0

What's Changed

New Contributors

Full Changelog: serilog/serilog-aspnetcore@v9.0.0...v10.0.0

9.0.0

What's Changed

  • #​388 - update to .NET 9 SDK, Serilog.Extensions.Hosting/Serilog.Settings.Configuration 9.0.0, Serilog 4.2.0 (@​nblumhardt)

8.0.3

  • #​383 - update Serilog.Settings.Configuration dependency (@​Numpsy)

8.0.2

  • #​376 - update Serilog.Settings.Configuration dependency to avoid transitive dependency on vulnerable System.Text.Json (@​nblumhardt)
  • #​364 - fix example code (@​RandomBuffer)
  • #​367 - clean up and format (@​sungam3r)
  • #​370 - README updates (@​nblumhardt)

Commits viewable in compare view.

Updated Serilog.Enrichers.Thread from 3.2.0-dev-00756 to 4.0.0.

Release notes

Sourced from Serilog.Enrichers.Thread's releases.

4.0.0

Commits viewable in compare view.

Updated Serilog.Sinks.Async from 1.5.0 to 2.1.0.

Release notes

Sourced from Serilog.Sinks.Async's releases.

2.1.0

  • #​98 - support ILoggingFailureListener and fallback sinks (@​nblumhardt)

2.0.0

  • #​85 - fixed typo in README.md (@​NielsPilgaard)
  • #​95 - update to Serilog 4, remove redundant WriteTo.Async() overloads, drop pre-netstandard2.0 TFMs (@​nblumhardt)

Commits viewable in compare view.

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps Serilog from 3.1.1 to 4.3.0
Bumps Serilog.AspNetCore from 8.0.1 to 10.0.0
Bumps Serilog.Enrichers.Thread from 3.2.0-dev-00756 to 4.0.0
Bumps Serilog.Sinks.Async from 1.5.0 to 2.1.0

---
updated-dependencies:
- dependency-name: Serilog
  dependency-version: 4.3.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: serilog
- dependency-name: Serilog.AspNetCore
  dependency-version: 10.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: serilog
- dependency-name: Serilog.Enrichers.Thread
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: serilog
- dependency-name: Serilog.Sinks.Async
  dependency-version: 2.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: serilog
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Dec 4, 2025

Assignees

The following users could not be added as assignees: ``. Either the username does not exist or it does not have the correct permissions to be added as an assignee.

Labels

The following labels could not be found: dependencies, nuget. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant