feat(logs): add log4net integration - #5172
Merged
Merged
@sentry/warden / warden: find-bugs
completed
Jul 16, 2026 in 0s
1 issue
find-bugs: Found 1 issue (1 low)
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.
⏱ 7m 39s · 1.8M in / 72.5k out · $4.60
Loading