iceagency/lumberjack-sentry-service-provider

A Service Provider for the Lumberjack framework that adds a Sentry integration.

1.0.11 2018-08-01 00:10 UTC

This package is not auto-updated.

Last update: 2024-04-19 21:50:45 UTC


README

Latest Stable Version CI Coveralls Total Downloads License

A Service Provider for the Lumberjack framework that allows simple integration to Sentry.

Written & maintained by the team at The ICE Agency

Requirements

Installing

  1. Install Lumberjack, see the guide here.
  2. Install via Composer: composer require iceagency/lumberjack-sentry-service-provider

Getting Started

  1. Create a config file called config/sentry.php
  2. Add the following:
<?php
return [
    'enabled' => getenv('SENTRY_ENABLED'),
    'dsn' => getenv('SENTRY_DSN')
];
  1. Add your Sentry DSN to your .env
SENTRY_DSN=https://public:secret@sentry.example.com/1
  1. Add the Service Provider to the Providers array in config/app.php as follows:
'providers' => [
    ...
    IceAgency\Lumberjack\Providers\SentryServiceProvider::class,
    ...
],

Usage

By default, Sentry will automatically be sent exceptions, to disable Sentry for a specific environment, add this following to your .env

SENTRY_ENABLED=false