File tree Expand file tree Collapse file tree 4 files changed +5
-2
lines changed
sentry-samples/sentry-samples-log4j2/src/main/resources Expand file tree Collapse file tree 4 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 5
5
### Features
6
6
7
7
- 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 `
8
10
9
11
### Fixes
10
12
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ object Config {
65
65
val logbackVersion = " 1.2.9"
66
66
val logbackClassic = " ch.qos.logback:logback-classic:$logbackVersion "
67
67
68
- val log4j2Version = " 2.17 .0"
68
+ val log4j2Version = " 2.20 .0"
69
69
val log4j2Api = " org.apache.logging.log4j:log4j-api:$log4j2Version "
70
70
val log4j2Core = " org.apache.logging.log4j:log4j-core:$log4j2Version "
71
71
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ dependencies {
23
23
api(projects.sentry)
24
24
implementation(Config .Libs .log4j2Api)
25
25
implementation(Config .Libs .log4j2Core)
26
+ annotationProcessor(Config .Libs .log4j2Core)
26
27
27
28
compileOnly(Config .CompileOnly .nopen)
28
29
errorprone(Config .CompileOnly .nopenChecker)
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <Configuration status =" WARN" packages = " io.sentry.log4j2 " >
2
+ <Configuration status =" WARN" >
3
3
<Appenders >
4
4
<Console name =" Console" target =" SYSTEM_OUT" >
5
5
<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