DEV Community

Dimitrios Desyllas
Dimitrios Desyllas

Posted on

How I can arbitary Log messages into the Sentry by defining sentry as log channel?

Can you tell me how I can manually log a message or an error into sentry using laravel's default logger?

In my laravel application I need to arbitrarily log messages into the sentry using the default log for example:

Log::channel('sentry')->error('Something wicked comes this way');

But either the documentation for sentry library for laravel does not show how to do that as seen in:

  1. https://sentry.io/for/laravel/
  2. https://docs.sentry.io/platforms/php/laravel/

Shows no way to do…

Top comments (0)