Open timkelty opened 12 months ago
Assigning to @getsentry/support for routing ⏲️
Laravel already uses the PHP SDKs Monolog Handler, see https://github.com/getsentry/sentry-laravel/blob/master/src/Sentry/Laravel/SentryHandler.php#L23.
We used to have docs for this, looks like they got forgotten about during the last major version migration.
For now, something like https://github.com/Seldaek/monolog#basic-usage should do the trick.
Agree. If I am not mistaken, other languages SDK are using logging lib as well.
Problem Statement
If you want to use Sentry via Monolog and are not using a supported framework like Laravel or Symfony, it is not clear how to proceed.
Given that Monolog pretty much the defacto logging lib for PHP, it seems like this should be an "official integration". Having a supported Monolog handler should also reduce the need for bespoke framework integrations, or at least the amount of code they have to supply.
https://github.com/getsentry/sentry-php/blob/master/src/Monolog/Handler.php exists, but has no docs.
To make things more confusing:
Solution Brainstorm
Sentry\Monolog\Handler