Skip to content

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

pcmagas profile image Dimitrios Desyllas github logo ・1 min read

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 arbiatary 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:


Shows no way to do…

twitter logo DISCUSS
markdown guide
Classic DEV Post from Aug 6 '19

What to put in your portfolio as a beginner web dev

Dimitrios Desyllas profile image
Greedings I am Dimitrios Desyllas aka pc_magas. I am a php software engineer in e-table. I am interested in electron, C++, privacy enhancing terchnologies and cryptography