File tree Expand file tree Collapse file tree
sentry-samples/sentry-samples-log4j2/src/main/resources Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55### Features
66
77- Attach Trace Context when an ANR is detected (ANRv1) ([ #2583 ] ( https://github.com/getsentry/sentry-java/pull/2583 ) )
8+ - Make log4j2 integration compatible with log4j 3.0 ([ #2634 ] ( https://github.com/getsentry/sentry-java/pull/2634 ) )
9+ - Instead of relying on package scanning, we now use an annotation processor to generate ` Log4j2Plugins.dat `
810
911### Fixes
1012
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ object Config {
6565 val logbackVersion = " 1.2.9"
6666 val logbackClassic = " ch.qos.logback:logback-classic:$logbackVersion "
6767
68- val log4j2Version = " 2.17 .0"
68+ val log4j2Version = " 2.20 .0"
6969 val log4j2Api = " org.apache.logging.log4j:log4j-api:$log4j2Version "
7070 val log4j2Core = " org.apache.logging.log4j:log4j-core:$log4j2Version "
7171
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ dependencies {
2323 api(projects.sentry)
2424 implementation(Config .Libs .log4j2Api)
2525 implementation(Config .Libs .log4j2Core)
26+ annotationProcessor(Config .Libs .log4j2Core)
2627
2728 compileOnly(Config .CompileOnly .nopen)
2829 errorprone(Config .CompileOnly .nopenChecker)
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
2- <Configuration status =" WARN" packages = " io.sentry.log4j2 " >
2+ <Configuration status =" WARN" >
33 <Appenders >
44 <Console name =" Console" target =" SYSTEM_OUT" >
55 <PatternLayout pattern =" %d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n" />
You can’t perform that action at this time.
0 commit comments