File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -270,6 +270,32 @@ Optionally you can set the logging level and if events should bubble on the driv
270270],
271271```
272272
273+ ### Naming you log channels
274+
275+ If you have multiple log channels you would like to filter on inside the Sentry interface you can add the ` name ` attribute to the log channel,
276+ it will show up in Sentry as the ` logger ` tag which is filterable.
277+
278+ For example:
279+
280+ ``` php
281+ 'channels' => [
282+ 'my_stacked_channel' => [
283+ 'driver' => 'stack',
284+ 'channels' => ['single', 'sentry'],
285+ 'name' => 'my-channel'
286+ ],
287+ //...
288+ ],
289+ ```
290+
291+ You're now able to log errors to your channel:
292+
293+ ``` php
294+ \Log::channel('my_stacked_channel')->error('My error');
295+ ```
296+
297+ And sentry's ` logger ` tag has now the channel's ` name ` "my-channel" value where you can filter on.
298+
273299
274300## Resolve name conflicts with packages also called Sentry
275301
You can’t perform that action at this time.
0 commit comments