intothesource/powerlogger
Powerlogger for our laravel CMS
81
| Install | |
|---|---|
composer require intothesource/powerlogger |
|
| Latest Version: | 1.0.9 |
| License: | BSD-2 |
| Last Updated: | Jan 4, 2017 |
| Links: | GitHub · Packagist |
Maintainer: intothesource
Laravel Powerlogger
Laravel Powerlogger, logs errors to Slack
Install
composer require intothesource/powerlogger
After install
ServiceProvider
Add the following line to "config/app.php"
at "providers":
IntoTheSource\Powerlogger\PowerloggerServiceProvider::class,
Creating the config file
Run the following command:
php artisan vendor:publish
Edit the config file
Edit the config file: config/powerlogger.php
<?php
return [
'customer' => 'Customer Name', // Customer name eg. Into The Source
'domain' => 'test.dev', // FQDN eg intothesource.com
'slack' => 'AAA/BBB/123' // Slack key
];
Error handling
Add the following line in the 'report' method in the file app\Exceptions\Handler.php
\IntoTheSource\Powerlogger\Handle::init($e);