Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,32 @@ Optionally you can set the logging level and if events should bubble on the driv
],
```

### Naming you log channels

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,
it will show up in Sentry as the `logger` tag which is filterable.

For example:

```php
'channels' => [
'my_stacked_channel' => [
'driver' => 'stack',
'channels' => ['single', 'sentry'],
'name' => 'my-channel'
],
//...
],
```

You're now able to log errors to your channel:

```php
\Log::channel('my_stacked_channel')->error('My error');
```

And sentry's `logger` tag has now the channel's `name` "my-channel" value where you can filter on.


## Resolve name conflicts with packages also called Sentry

Expand Down