Skip to content

Commit 0c52f1d

Browse files
authored
Add troubleshooting note about logging in Laravel Tinker (#15242)
1 parent 51e9dba commit 0c52f1d

File tree

1 file changed

+2
-0
lines changed
  • docs/platforms/php/guides/laravel/logs

1 file changed

+2
-0
lines changed

docs/platforms/php/guides/laravel/logs/index.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ With Sentry Structured Logs, you can send text-based log information from your L
3131

3232
If your logs are not appearing in Sentry, check or test the following:
3333

34+
If you are testing in Tinker (`php artisan tinker`), make sure to call `\Sentry\logger()->flush();` manually to send Logs to Sentry as it does not trigger automatically.
35+
3436
Check your `config/logging.php` and ensure the default log channel and stack channel allow configuration using environment variables:
3537

3638
```php {filename:config/logging.php}

0 commit comments

Comments
 (0)