Skip to content

feat(logs): add log4net integration - #5172

Merged
jamescrosswell merged 18 commits into
mainfrom
feat/logs-log4net
Jul 16, 2026
Merged

feat(logs): add log4net integration#5172
jamescrosswell merged 18 commits into
mainfrom
feat/logs-log4net

Update src/Sentry.Log4Net/SentryAppender.cs

4236d5f
Select commit
Loading
Failed to load commit list.
@sentry/warden / warden completed Jul 16, 2026 in 0s

1 issue

Low

Potential NullReferenceException when loggingEvent.Level is null - `src/Sentry.Log4Net/LevelMapping.cs:38`

The >= comparison operators will throw a NullReferenceException if loggingEvent.Level is null, unlike the existing ToSentryLevel and ToBreadcrumbLevel methods that use null-safe == comparisons. Consider adding a null check: var level when level is null => null, as the first pattern.

4 skills analyzed
Skill Findings Duration Cost
security-review 0 1m 15s $0.37
code-review 0 3m 52s $2.01
find-bugs 1 7m 39s $4.60
gha-security-review 0 6m 47s $0.52

⏱ 19m 33s · 2.6M in / 126.3k out · $7.50