File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,30 @@ sentry:
90
90
dsn :
" https://public:[email protected] /1"
91
91
` ` `
92
92
93
+ #### Optional: use monolog handler provided by ` sentry/sentry`
94
+ *Note: this step is optional*
95
+
96
+ 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.
98
+
99
+ First, define `Sentry\Monolog\Handler` as a service in `app/config/services.yml`
100
+
101
+ ` ` ` yaml
102
+ services:
103
+ sentry.monolog.handler:
104
+ class: Sentry\M onolog\H andler
105
+ ` ` `
106
+
107
+ Then enable it in `monolog` config :
108
+
109
+ ` ` ` yaml
110
+ monolog:
111
+ sentry:
112
+ type: service
113
+ id: sentry.monolog.handler
114
+ level: error
115
+ ` ` `
116
+
93
117
# # Maintained versions
94
118
* 3.x is actively maintained and developed on the master branch, and uses Sentry SDK 2.0;
95
119
* 2.x is supported only for fixes; from this version onwards it requires Symfony 3+ and PHP 7.1+;
You can’t perform that action at this time.
0 commit comments