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 #28

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.

Copy link

github-actions bot commented Jun 1, 2024

Test Results

15 tests  ±0   15 ✅ ±0   1s ⏱️ -1s
 3 suites ±0    0 💤 ±0 
 3 files   ±0    0 ❌ ±0 

Results for commit 0efb9bb. ± Comparison against base commit 700002a.

♻️ This comment has been updated with latest results.

@renovate renovate bot force-pushed the renovate/serilog-4.x branch from cdf8d58 to 979938f Compare July 25, 2024 04:38
@renovate renovate bot changed the title Update dependency Serilog to v4 Update dependency Serilog to v4 - autoclosed Sep 24, 2024
@renovate renovate bot closed this Sep 24, 2024
@renovate renovate bot deleted the renovate/serilog-4.x branch September 24, 2024 22:40
@renovate renovate bot changed the title Update dependency Serilog to v4 - autoclosed Update dependency Serilog to v4 Sep 25, 2024
@renovate renovate bot reopened this Sep 25, 2024
@renovate renovate bot restored the renovate/serilog-4.x branch September 25, 2024 02:04
@renovate renovate bot force-pushed the renovate/serilog-4.x branch from 979938f to b881094 Compare September 28, 2024 22:48
@renovate renovate bot force-pushed the renovate/serilog-4.x branch from b881094 to 033dcf5 Compare October 22, 2024 06:32
@renovate renovate bot force-pushed the renovate/serilog-4.x branch from 033dcf5 to 0efb9bb Compare December 6, 2024 05:17
Copy link

github-actions bot commented Dec 6, 2024

Code Coverage

Package Line Rate Branch Rate Complexity Health
Sample-CleanArchitecture-CQRS.Api 0% 0% 27
Sample-CleanArchitecture-CQRS.Application 7% 3% 153
Sample-CleanArchitecture-CQRS.Domain 43% 75% 37
Sample-CleanArchitecture-CQRS.Infrastructure 3% 0% 197
Sample-CleanArchitecture-CQRS.Shared 0% 0% 25
Summary 5% (86 / 1791) 5% (10 / 198) 439

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