Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency Serilog to v4 #52

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 1, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
Serilog (source) 3.1.1 -> 4.2.0 age adoption passing confidence

Release Notes

serilog/serilog (Serilog)

v4.2.0

What's Changed

New Contributors

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

v4.1.0

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.

v4.0.2

v4.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)

v4.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


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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/serilog-4.x branch from 2fbca49 to dfbf929 Compare June 11, 2024 17:03
@renovate renovate bot force-pushed the renovate/serilog-4.x branch from dfbf929 to 99481e5 Compare June 26, 2024 19:01
@renovate renovate bot force-pushed the renovate/serilog-4.x branch from 99481e5 to 2c3f583 Compare July 12, 2024 15:02
@renovate renovate bot force-pushed the renovate/serilog-4.x branch 2 times, most recently from b9d309c to d0aece2 Compare July 25, 2024 03:17
@renovate renovate bot force-pushed the renovate/serilog-4.x branch from d0aece2 to 1207119 Compare August 6, 2024 20:26
@renovate renovate bot force-pushed the renovate/serilog-4.x branch from 1207119 to de443ea Compare August 14, 2024 17:43
@renovate renovate bot force-pushed the renovate/serilog-4.x branch from de443ea to 5cec5bc Compare September 28, 2024 21:31
@renovate renovate bot force-pushed the renovate/serilog-4.x branch from 5cec5bc to 6a3ddab Compare October 22, 2024 05:01
@renovate renovate bot force-pushed the renovate/serilog-4.x branch from 6a3ddab to af743ad Compare December 6, 2024 04:29
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.

0 participants