swilsonalfa / sentrylogger
Publish SilverStripe errors and warnings to Sentry using the Raven client.
Installs: 5 505
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 3
Open Issues: 1
Type:silverstripe-module
Requires
- sentry/sentry: ~1
- silverstripe/framework: ~3.1
This package is not auto-updated.
Last update: 2025-05-05 09:45:52 UTC
README
Publish SilverStripe errors and warnings to Sentry using the Raven client.
Installation
Composer (recommended):
composer require swilsonalfa/sentrylogger
Configuration
Add the following to your _config.php file in the mysite folder:
SS_Log::add_writer(new SentryLogger());
Add the Sentry DSN (available from the Sentry website) into your config yml file:
SentryLogger: sentry_dsn: https://xxx:xxx@app.getsentry.com/xxx