Skip to content

Commit 142f31a

Browse files
Fix monolog confiugration for handler and update paths for symfony 4
1 parent 458c4bf commit 142f31a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ the [PHP specific](https://docs.sentry.io/platforms/php/#php-specific-options) o
106106
If You're using `monolog` for logging e.g. in-app errors, You
107107
can use this handler in order for them to show up in Sentry.
108108

109-
First, define `Sentry\Monolog\Handler` as a service in `app/config/services.yml`
109+
First, define `Sentry\Monolog\Handler` as a service in `config/services.yaml`
110110

111111
```yaml
112112
services:
@@ -118,10 +118,11 @@ Then enable it in `monolog` config:
118118

119119
```yaml
120120
monolog:
121-
sentry:
122-
type: service
123-
id: sentry.monolog.handler
124-
level: error
121+
handlers:
122+
sentry:
123+
type: service
124+
id: sentry.monolog.handler
125+
level: error
125126
```
126127

127128
## Maintained versions

0 commit comments

Comments
 (0)