Skip to content

Conversation

@StasPerekrestov
Copy link
Contributor

Dear Mani,

Please review this pull request.

Summary:

  1. Upgrades Serilog to 4.0
  2. Adds .NET 8.0 and removes .NET 5.0 from Target Frameworks
  3. Adds source-generated Regex support for .NET 8.0 + to LogFormatter
  4. Uses introduced in Serilog 3.1 properties TraceId/SpanId to propagate trace context

Please let me know if you see that the PR could be improved.

Thank you.

Stanislav Perekrestov added 3 commits June 3, 2024 11:45
Serilog starting from v3.1.0 adds two new first-class properties to LogEvent: TraceId and SpanId. These are set automatically in Logger.Write() to the corresponding property values from System.Diagnostics.Activity.Current.
Stanislav Perekrestov added 3 commits July 8, 2025 17:02
…ng rendering

As IBatchedLogEventSink is not called concurrently, it's considered safe to reuse a StringBuilder for message rendering
@StasPerekrestov StasPerekrestov force-pushed the feature/71-upgrades-to-serilog-4 branch from 6c393b1 to a51bac7 Compare July 15, 2025 01:47
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