Skip to content

Commit 3a92cfb

Browse files
authored
Switch from sentry -> sentry_logs for laravel logs channel (#14559)
ref getsentry/sentry#97217
1 parent d5bbb91 commit 3a92cfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Log::warning('User {id} failed to login.', ['id' => $user->id]);
99
Log::error('This is an error message');
1010

1111
// Log directly to the Sentry channel
12-
Log::channel('sentry')->error('This will only go to Sentry');
12+
Log::channel('sentry_logs')->error('This will only go to Sentry');
1313
```
1414

1515
You can pass additional attributes directly to the logging functions. These properties will be sent to Sentry, and can be searched from within the Logs UI, and even added to the Logs views as a dedicated column.

0 commit comments

Comments
 (0)