swilsonalfa/sentrylogger

Publish SilverStripe errors and warnings to Sentry using the Raven client.

Installs: 5 421

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 2

Forks: 3

Open Issues: 1

Type:silverstripe-module

v1.2.1 2018-02-07 23:08 UTC

This package is not auto-updated.

Last update: 2024-04-08 04:27:37 UTC


README

Scrutinizer Code Quality helpfulrobot

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