Skip to content

feat(logs): add log4net integration#5172

Draft
Flash0ver wants to merge 5 commits intomainfrom
feat/logs-log4net
Draft

feat(logs): add log4net integration#5172
Flash0ver wants to merge 5 commits intomainfrom
feat/logs-log4net

Conversation

@Flash0ver
Copy link
Copy Markdown
Member

closes #4731

Changes

Add log4net integration to Sentry Structured Logging.

Docs

  • TODO

@Flash0ver Flash0ver self-assigned this Apr 29, 2026
Comment on lines +154 to +156
//TODO: assert Count/Length of Attributes
//requires: https://github.com/getsentry/sentry-dotnet/pull/4936
//should not contain "log4net:.." properties
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

todo: add missing assertions

@codecov
Copy link
Copy Markdown

codecov Bot commented May 1, 2026

Codecov Report

❌ Patch coverage is 92.68293% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.13%. Comparing base (a2318ff) to head (8b180f1).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/Sentry.Log4Net/LevelMapping.cs 75.00% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5172      +/-   ##
==========================================
+ Coverage   74.07%   74.13%   +0.05%     
==========================================
  Files         501      503       +2     
  Lines       18113    18154      +41     
  Branches     3521     3534      +13     
==========================================
+ Hits        13417    13458      +41     
- Misses       3837     3839       +2     
+ Partials      859      857       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Add Sentry Logs support to Log4Net

2 participants