You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Send JUL logs to Sentry as logs ([#4518](https://github.com/getsentry/sentry-java/pull/4518))
19
+
- You need to enable the logs feature, either in `sentry.properties`:
20
+
```properties
21
+
logs.enabled=true
22
+
```
23
+
- Or, if you manually initialize Sentry, you may also enable logs on `Sentry.init`:
24
+
```java
25
+
Sentry.init(options -> {
26
+
...
27
+
options.getLogs().setEnabled(true);
28
+
});
29
+
```
30
+
- It is also possible to set the `minimumLevel` in `logging.properties`, meaning any log message >= the configured level will be sent to Sentry and show up under Logs:
31
+
```properties
32
+
io.sentry.jul.SentryHandler.minimumLevel=CONFIG
33
+
```
34
+
- Send Log4j2 logs to Sentry as logs ([#4517](https://github.com/getsentry/sentry-java/pull/4517))
35
+
- You need to enable the logs feature either in `sentry.properties`:
36
+
```properties
37
+
logs.enabled=true
38
+
```
39
+
- If you manually initialize Sentry, you may also enable logs on `Sentry.init`:
40
+
```java
41
+
Sentry.init(options -> {
42
+
...
43
+
options.getLogs().setEnabled(true);
44
+
});
45
+
```
46
+
- It is also possible to set the `minimumLevel` in `log4j2.xml`, meaning any log message >= the configured level will be sent to Sentry and show up under Logs:
47
+
```xml
48
+
<Sentry name="Sentry"
49
+
dsn="your DSN"
50
+
minimumBreadcrumbLevel="DEBUG"
51
+
minimumEventLevel="WARN"
52
+
minimumLevel="DEBUG"
53
+
/>
54
+
```
55
+
56
+
## 8.15.1
57
+
58
+
### Fixes
59
+
60
+
- Enabling Sentry Logs through Logback in Spring Boot config did not work in 3.15.0 ([#4523](https://github.com/getsentry/sentry-java/pull/4523))
0 commit comments