Skip to content

Commit be9f7b7

Browse files
committed
Updates README.md with monolog handler mention.
1 parent 625787f commit be9f7b7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,20 @@ sentry:
9090
dsn: "https://public:[email protected]/1"
9191
```
9292
93+
#### Optional: use monolog handler provided by `sentry/sentry`
94+
*Note: this step is optional*
95+
96+
The bundle registers `Sentry\Monolog\Handler` as a service. If You're using `monolog` for logging e.g. in-app errors, You
97+
can use this handler in order for them to show up in Sentry. Modify `MonologBundle` configuration:
98+
99+
```yaml
100+
monolog:
101+
sentry:
102+
type: service
103+
id: Sentry\Monolog\Handler
104+
level: error
105+
```
106+
93107
## Maintained versions
94108
* 3.x is actively maintained and developed on the master branch, and uses Sentry SDK 2.0;
95109
* 2.x is supported only for fixes; from this version onwards it requires Symfony 3+ and PHP 7.1+;

0 commit comments

Comments
 (0)