Skip to content

Commit f8f9979

Browse files
adinauerlcianbuenaflor
authored
Apply suggestions from code review
Co-authored-by: Lorenzo Cian <[email protected]> Co-authored-by: Giancarlo Buenaflor <[email protected]>
1 parent b541251 commit f8f9979

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

develop-docs/sdk/telemetry/logs.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ logger()->info('Adding item %s for user %s', [$item_id, $user_id], ['extra' => 1
226226
```java
227227
import io.sentry.Sentry;
228228

229-
// example with MessageFormat based string template
230229
Sentry.logger().info("Adding item %s for user %s", itemId, userId);
231230

232231
// Kotlin

platform-includes/logs/options/android.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class MyApplication extends Application {
1111
public void onCreate() {
1212
super.onCreate();
1313
SentryAndroid.init(this, options -> {
14-
options.setDsn("https://[email protected]/0");
14+
options.setDsn("___PUBLIC_DSN___");
1515
options.getLogs().setBeforeSend((logEvent) -> {
1616
// Modify the event here:
1717
logEvent.setBody("new message body");
@@ -22,16 +22,17 @@ public class MyApplication extends Application {
2222
}
2323
```
2424

25-
```kotlin {tabTitle: Kotlin}
25+
```kotlin {tabTitle: Kotlin} {11-15}
2626
import io.sentry.android.core.SentryAndroid
2727
import io.sentry.SentryOptions.BeforeSendCallback
2828
import io.sentry.Hint
2929
import android.app.Application
30+
3031
class MyApplication : Application() {
3132
override fun onCreate() {
3233
super.onCreate()
3334
SentryAndroid.init(this) { options ->
34-
options.dsn = "https://[email protected]/0"
35+
options.dsn = "___PUBLIC_DSN___",
3536
options.logs.beforeSend = BeforeSendLogCallback { logEvent ->
3637
// Modify the event here:
3738
logEvent.body = "new message body"

platform-includes/logs/setup/android.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class MyApplication extends Application {
99
public void onCreate() {
1010
super.onCreate();
1111
SentryAndroid.init(this, options -> {
12-
options.setDsn("https://[email protected]/0");
12+
options.setDsn("___PUBLIC_DSN___");
1313
options.getLogs().setEnabled(true);
1414
});
1515
}
@@ -21,11 +21,12 @@ import io.sentry.android.core.SentryAndroid
2121
import io.sentry.SentryOptions.BeforeSendCallback
2222
import io.sentry.Hint
2323
import android.app.Application
24+
2425
class MyApplication : Application() {
2526
override fun onCreate() {
2627
super.onCreate()
2728
SentryAndroid.init(this) { options ->
28-
options.dsn = "https://[email protected]/0"
29+
options.dsn = "___PUBLIC_DSN___"
2930
options.logs.enabled = true
3031
}
3132
}

platform-includes/logs/setup/java.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@ import io.sentry.Sentry
1313

1414
Sentry.init { options ->
1515
options.logs.enabled = true
16-
}
1716
}
1817
```

platform-includes/logs/usage/android.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Sentry.logger().error("A %s log message", "formatted");
1414
```
1515

1616
```kotlin {tabTitle: Kotlin}
17-
import io.sentry.Sentry;
17+
import io.sentry.Sentry
1818

1919
Sentry.logger().info("A simple log message")
2020
Sentry.logger().error("A %s log message", "formatted")

platform-includes/logs/usage/java.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Sentry.logger().error("A %s log message", "formatted");
1414
```
1515

1616
```kotlin {tabTitle: Kotlin}
17-
import io.sentry.Sentry;
17+
import io.sentry.Sentry
1818

1919
Sentry.logger().info("A simple log message")
2020
Sentry.logger().error("A %s log message", "formatted")

0 commit comments

Comments
 (0)