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
In the first place, this is an "wrapper extension" for the [`sentry/sentry-symfony` bundle][1]. Therefore, you need to
13
-
configure this bundle as you would configure the `sentry/sentry-symfony` bundle: [Documentation][2]
14
-
15
-
### Recommended configuration
16
-
17
-
If you also want to report the system log errors to Sentry, this is the recommended configuration:
18
-
19
-
```yml
20
-
sentry:
21
-
dsn: "https://xyz@sentry.io/xy"
22
-
register_error_listener: false
23
-
24
-
Sentry\Monolog\Handler:
25
-
arguments:
26
-
$hub: '@Sentry\State\HubInterface'
27
-
$level: !php/const Monolog\Logger::ERROR # Can be one of https://github.com/Seldaek/monolog/blob/master/doc/01-usage.md#log-levels, but System::log() only uses INFO or ERROR
28
-
$bubble: false
29
-
30
-
monolog:
31
-
handlers:
32
-
sentry:
33
-
type: service
34
-
id: Sentry\Monolog\Handler
35
-
priority: 100# Higher priority than ContaoTableHandler which will stop handling afterwards (bubbling is set to true)
36
-
bubble: false # Use bubble: true if you don't want the logs to show up in the system log (bubbling means, no monolog handlers will run afterwards)
37
-
```
12
+
This is a "wrapper extension" for the [`sentry/sentry-symfony` bundle][1].
13
+
14
+
15
+
### Setup in the Contao Managed Edition
16
+
17
+
The basic integration is automatically configured to some sane defaults. To enable
18
+
the integration, configure the `SENTRY_DSN` variable in your `.env.local` file.
19
+
20
+
Additionally, you can name the `SENTRY_ENV` in your `.env.local` file, which can be useful
21
+
if you e.g. have a `test` and `prod` installation.
22
+
23
+
If you need to change any of the defaults, simply configure
24
+
the `sentry/sentry-symfony` bundle according to the [Documentation][2].
25
+
26
+
27
+
### Manual configuration
28
+
29
+
If you do not use the Contao Managed Edition, you need to configure this bundle as you would
30
+
configure the `sentry/sentry-symfony` bundle: [Documentation][2]
31
+
38
32
39
33
### User feedback
40
34
@@ -44,7 +38,7 @@ some comments.
44
38
45
39
In order to integrate this feature, you have to alter the error page template. Place a copy of
46
40
`vendor/contao/core-bundle/src/Resources/views/Error/layout.html.twig` in the directory
47
-
`app/Resources/ContaoCoreBundle/views/Error/`.
41
+
`templates/ContaoCoreBundle/views/Error/`.
48
42
49
43
Modify the copied template and place the following snippet just before the closing `</body>` tag:
50
44
```twig
@@ -70,6 +64,6 @@ Modify the copied template and place the following snippet just before the closi
0 commit comments