We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05e23bd commit a349be2Copy full SHA for a349be2
CHANGELOG.md
@@ -20,6 +20,27 @@
20
```properties
21
io.sentry.jul.SentryHandler.minimumLevel=CONFIG
22
```
23
+- Send Log4j2 logs to Sentry as logs ([#4517](https://github.com/getsentry/sentry-java/pull/4517))
24
+ - You need to enable the logs feature either in `sentry.properties`:
25
+ ```properties
26
+ logs.enabled=true
27
+ ```
28
+ - If you manually initialize Sentry, you may also enable logs on `Sentry.init`:
29
+ ```java
30
+ Sentry.init(options -> {
31
+ ...
32
+ options.getLogs().setEnabled(true);
33
+ });
34
35
+ - You may set `minimumLevel` in `log4j2.xml`:
36
+ ```xml
37
+ <Sentry name="Sentry"
38
+ dsn="your DSN"
39
+ minimumBreadcrumbLevel="DEBUG"
40
+ minimumEventLevel="WARN"
41
+ minimumLevel="DEBUG"
42
+ />
43
44
45
## 8.15.1
46
0 commit comments