Download the PHP package bigfork/silverstripe-sentry-handler without Composer
On this page you can find all versions of the php package bigfork/silverstripe-sentry-handler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bigfork/silverstripe-sentry-handler
More information about bigfork/silverstripe-sentry-handler
Files in bigfork/silverstripe-sentry-handler
Package silverstripe-sentry-handler
Short Description A standalone Monolog handler for Sentry
License BSD-3-Clause
Informations about the package silverstripe-sentry-handler
Silverstripe Sentry Handler
Minimalistic module designed to make it easier to obtain a Sentry\Monolog\Handler
instance for consumption by
Monolog loggers.
⚠️ If you simply want errors logged to Sentry, you’re probably better off using the
phptek/sentry
module instead of this one.
This module differs in that its goal is to make it easier to use Sentry with multiple Logger instances that have different configuration options.
Installation
composer require bigfork/silverstripe-sentry-handler
Configuration
Simply add a SENTRY_DSN
environment variable containing the DSN provided in the Sentry UI.
Customisation
By default, this module will push an additional handler to the default Psr\Log\LoggerInterface.errorhandler
service
which will push errors to Sentry (similar to the phptek/sentry
module). You can disable this behaviour with:
You can configure another Sentry\Monolog\Handler
instance by using the SentryHubFactory
class to help build out
your Sentry hub to be passed the handler:
All versions of silverstripe-sentry-handler with dependencies
sentry/sdk Version ^3
sentry/sentry Version ^3.4
silverstripe/framework Version ^5