File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 77- No longer send out empty log envelopes ([ #4497 ] ( https://github.com/getsentry/sentry-java/pull/4497 ) )
88- Session Replay: Expand fix for crash on devices to all Unisoc/Spreadtrum chipsets ([ #4510 ] ( https://github.com/getsentry/sentry-java/pull/4510 ) )
99
10+ ### Features
11+
12+ - Send Logback logs to Sentry as logs ([ #4502 ] ( https://github.com/getsentry/sentry-java/pull/4502 ) )
13+ - You need to enable the logs feature and can also set the ` minimumLevel ` for log events:
14+ ``` xml
15+ <appender name =" sentry" class =" io.sentry.logback.SentryAppender" >
16+ <options >
17+ <!-- NOTE: Replace the test DSN below with YOUR OWN DSN to see the events from this app in your Sentry project/dashboard -->
18+ <dsn >https://502f25099c204a2fbf4cb16edc5975d1@o447951.ingest.sentry.io/5428563</dsn >
19+ <logs >
20+ <enabled >true</enabled >
21+ </logs >
22+ </options >
23+ <!-- Demonstrates how to modify the minimum values -->
24+ <!-- Default for Events is ERROR -->
25+ <minimumEventLevel >WARN</minimumEventLevel >
26+ <!-- Default for Breadcrumbs is INFO -->
27+ <minimumBreadcrumbLevel >DEBUG</minimumBreadcrumbLevel >
28+ <!-- Default for Breadcrumbs is INFO -->
29+ <minimumLevel >INFO</minimumLevel >
30+ </appender >
31+ ```
32+ - If you manually initialize Sentry, you may also enable logs on `Sentry.init`:
33+ ```java
34+ Sentry.init(options -> {
35+ ...
36+ options.getLogs().setEnabled(true);
37+ });
38+ ```
39+ - Enabling via `sentry.properties` is also possible:
40+ ```properties
41+ logs.enabled=true
42+ ```
43+
1044### Dependencies
1145
1246- Bump Gradle from v8.14.1 to v8.14.2 ([#4473](https://github.com/getsentry/sentry-java/pull/4473))
You can’t perform that action at this time.
0 commit comments