Skip to content

Commit 288994e

Browse files
authored
Add Android Logs integrations (#14293)
1 parent c591e02 commit 288994e

File tree

4 files changed

+29
-5
lines changed

4 files changed

+29
-5
lines changed

docs/platforms/android/integrations/logcat/index.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,13 @@ Learn more about manually capturing an error or message in our <PlatformLink to=
119119
</Alert>
120120

121121
To view and resolve the recorded message, log into [sentry.io](https://sentry.io) and open your project. Click on the error's title to open a page where you can see error details and mark errors as resolved.
122+
123+
## Support With Sentry Logs
124+
125+
<Alert>
126+
127+
Sentry Logs for Logcat are supported in Sentry Android SDK version `8.17.0` and above.
128+
129+
</Alert>
130+
131+
Logcat logs at or above the `minLevel` captured by Sentry are automatically sent as <PlatformLink to="/logs/">Sentry Logs</PlatformLink>, if enabled.

docs/platforms/android/integrations/timber/index.mdx

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,12 @@ SentryAndroid.init(this) { options ->
7979
// default values:
8080
// minEventLevel = ERROR
8181
// minBreadcrumbLevel = INFO
82+
// minLogsLevel = SentryLogLevel.INFO,
8283
options.addIntegration(
8384
SentryTimberIntegration(
8485
minEventLevel = SentryLevel.ERROR,
85-
minBreadcrumbLevel = SentryLevel.INFO
86+
minBreadcrumbLevel = SentryLevel.INFO,
87+
minLogsLevel = SentryLogLevel.INFO
8688
)
8789
)
8890
} else {
@@ -103,10 +105,12 @@ SentryAndroid.init(this, options -> {
103105
// default values:
104106
// minEventLevel = ERROR
105107
// minBreadcrumbLevel = INFO
108+
// minLogsLevel = SentryLogLevel.INFO,
106109
options.addIntegration(
107110
new SentryTimberIntegration(
108111
SentryLevel.ERROR,
109-
SentryLevel.INFO
112+
SentryLevel.INFO,
113+
SentryLogLevel.INFO
110114
)
111115
);
112116
} else {
@@ -162,3 +166,13 @@ Learn more about manually capturing an error or message, in our <PlatformLink to
162166
</Alert>
163167

164168
To view and resolve the recorded message, log into [sentry.io](https://sentry.io) and open your project. Clicking on the error's title will open a page where you can see detailed information and mark it as resolved.
169+
170+
## Support With Sentry Logs
171+
172+
<Alert>
173+
174+
Sentry Logs for Timber are supported in Sentry Android SDK version `8.17.0` and above.
175+
176+
</Alert>
177+
178+
Timber logs at or above the `minLogsLevel` captured by Sentry are automatically sent as <PlatformLink to="/logs/">Sentry Logs</PlatformLink>, if enabled.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
We're actively working on adding more integration support for Logs. You can follow progress on the following GitHub issues or open a [new one](https://github.com/getsentry/sentry-java/issues/new/choose) for any integration you would like to see.
22

3-
- [Timber](https://github.com/getsentry/sentry-java/issues/4407)
4-
- [Logcat](https://github.com/getsentry/sentry-java/issues/4408)
3+
- [Timber](/platforms/android/integrations/timber/)
4+
- [Logcat](/platforms/android/integrations/logcat/)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Logs for Android are supported in Sentry Java SDK version `8.12.0` and above.
1+
Logs for Android are supported in Sentry Android SDK version `8.12.0` and above.

0 commit comments

Comments
 (0)