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
<!-- Add data like request headers, user ip address and device name, see https://docs.sentry.io/platforms/android/data-management/data-collected/ for more info -->
<!-- Add data like request headers, user ip address and device name, see https://docs.sentry.io/platforms/android/data-management/data-collected/ for more info -->
Copy file name to clipboardExpand all lines: platform-includes/getting-started-config/java.log4j2.mdx
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,12 @@ Note that **you need to configure your DSN** (client key) only if you wish to in
66
66
```
67
67
68
68
If the DSN is not present in the `log4j2.xml` configuration, Sentry will attempt to read it from the system property `sentry.dsn`, environment variable `SENTRY_DSN` or the `dsn` property in `sentry.properties` file. [See the configuration page](/platforms/java/configuration/) for more details on external configuration.
69
+
70
+
```properties {tabTitle:sentry.properties}
71
+
# Add data like request headers and IP for users,
72
+
# see https://docs.sentry.io/platforms/java/guides/log4j2/data-management/data-collected/ for more info
Copy file name to clipboardExpand all lines: platform-includes/getting-started-config/java.logback.mdx
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,8 @@ The `ConsoleAppender` is provided only as an example of a non-Sentry appender se
23
23
<options>
24
24
<!-- NOTE: Replace the test DSN below with YOUR OWN DSN to see the events from this app in your Sentry project/dashboard -->
25
25
<dsn>___PUBLIC_DSN___</dsn>
26
+
<!-- Add data like request headers and IP for users, see https://docs.sentry.io/platforms/java/guides/logback/data-management/data-collected/ for more info -->
27
+
<sendDefaultPii>true</sendDefaultPii>
26
28
</options>
27
29
</appender>
28
30
@@ -70,6 +72,8 @@ Note that **you need to configure your DSN** (client key).
70
72
<options>
71
73
<!-- NOTE: Replace the test DSN below with your DSN to see the events from this app in sentry.io -->
72
74
<dsn>___PUBLIC_DSN___</dsn>
75
+
<!-- Add data like request headers and IP for users, see https://docs.sentry.io/platforms/java/guides/logback/data-management/data-collected/ for more info -->
76
+
<sendDefaultPii>true</sendDefaultPii>
73
77
</options>
74
78
</appender>
75
79
```
@@ -99,6 +103,8 @@ Breadcrumbs are kept in memory (by default the last 100 records) and are sent wi
99
103
<options>
100
104
<!-- NOTE: Replace the test DSN below with YOUR OWN DSN to see the events from this app in your Sentry project/dashboard -->
101
105
<dsn>___PUBLIC_DSN___</dsn>
106
+
<!-- Add data like request headers and IP for users, see https://docs.sentry.io/platforms/java/guides/logback/data-management/data-collected/ for more info -->
107
+
<sendDefaultPii>true</sendDefaultPii>
102
108
</options>
103
109
<!-- Optionally change minimum Event level. Default for Events is ERROR -->
0 commit comments