Skip to content

Commit d826020

Browse files
authored
Update Laravel logs setup (#14175)
1 parent 9b1252e commit d826020

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

platform-includes/logs/setup/php.laravel.mdx

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ To configure Sentry as a log channel, add the following config to the `channels`
55
// ...
66
'sentry_logs' => [
77
'driver' => 'sentry_logs',
8+
// The minimum logging level at which this handler will be triggered
9+
// Available levels: debug, info, notice, warning, error, critical, alert, emergency
10+
'level' => env('LOG_LEVEL', 'info'), // defaults to `debug` if not set
811
],
912
],
1013
```
@@ -25,17 +28,4 @@ SENTRY_ENABLE_LOGS=true
2528
# ...
2629
```
2730

28-
Optionally, you can set the logging level:
29-
30-
```php {filename:config/logging.php}
31-
'channels' => [
32-
// ...
33-
'sentry_logs' => [
34-
'driver' => 'sentry_logs',
35-
// The minimum logging level at which this handler will be triggered
36-
// Available levels: debug, info, notice, warning, error, critical, alert, emergency
37-
'level' => env('LOG_LEVEL', 'info'), // defaults to `debug` if not set
38-
],
39-
// ...
40-
],
41-
```
31+
Also make sure your `config/sentry.php` file is up to date. You can find the latest version on [GitHub](https://github.com/getsentry/sentry-laravel/blob/master/config/sentry.php).

0 commit comments

Comments
 (0)