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
Copy file name to clipboardExpand all lines: docs/platforms/python/index.mdx
+10-12Lines changed: 10 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,20 +12,19 @@ categories:
12
12
13
13
## Prerequisites
14
14
15
-
* You need a Sentry [account](https://sentry.io/signup/) and [project](/product/projects/)
16
-
* Read one of our dedicated guides if you use any of the <PlatformLinkto="/integrations/#web-frameworks">frameworks</PlatformLink> we support
15
+
- You need a Sentry [account](https://sentry.io/signup/) and [project](/product/projects/)
16
+
- Read one of our dedicated guides if you use any of the <PlatformLinkto="/integrations/#web-frameworks">frameworks</PlatformLink> we support
17
17
18
18
## Features
19
19
20
-
<pclassName="mb-5">Select which Sentry features you'd like to install in addition to Error Monitoring to get the corresponding installation and configuration instructions below.</p>
20
+
<pclassName="mb-5">
21
+
Select which Sentry features you'd like to install in addition to Error
22
+
Monitoring to get the corresponding installation and configuration
my_logger.warning('Now, this log message will not be sent to Sentry logs, since the logger is set to ERROR.')
53
49
```
54
50
55
-
56
51
The logging integration automatically monkeypatches a handler into all loggers except for the root logger. If you'd like to manually configure the handler, you can do that like so:
57
52
58
53
```python
@@ -62,9 +57,7 @@ from sentry_sdk.integrations.logging import LoggingIntegration
62
57
63
58
sentry_sdk.init(
64
59
dsn="___PUBLIC_DSN___",
65
-
_experiments={
66
-
"enable_logs": True
67
-
},
60
+
enable_logs=True,
68
61
integrations=[
69
62
LoggingIntegration(sentry_logs_level=None), # Do not monkeypatch the sentry handler
70
63
],
@@ -84,9 +77,7 @@ from loguru import logger
84
77
85
78
sentry_sdk.init(
86
79
dsn="___PUBLIC_DSN___",
87
-
_experiments={
88
-
"enable_logs": True,
89
-
},
80
+
enable_logs=True,
90
81
)
91
82
92
83
loguru.debug("In this example, debug events will not be sent to Sentry logs.")
@@ -102,9 +93,7 @@ from sentry_sdk.integrations.loguru import LoggingLevels, LoguruIntegration
102
93
103
94
sentry_sdk.init(
104
95
dsn="___PUBLIC_DSN___",
105
-
_experiments={
106
-
"enable_logs": True
107
-
},
96
+
enable_logs=True,
108
97
integrations=[
109
98
# Only send WARNING (and higher) logs to Sentry logs
0 commit comments