Skip to content
Snippets Groups Projects
Commit c3871c98 authored by snipe's avatar snipe
Browse files

Updated rollbar package

parent 7e56fc5e
Branches
No related tags found
No related merge requests found
...@@ -52,7 +52,7 @@ class AppServiceProvider extends ServiceProvider ...@@ -52,7 +52,7 @@ class AppServiceProvider extends ServiceProvider
public function register() public function register()
{ {
if (($this->app->environment('production')) && (config('services.rollbar.access_token'))){ if (($this->app->environment('production')) && (config('logging.channels.rollbar.access_token'))) {
$this->app->register(\Rollbar\Laravel\RollbarServiceProvider::class); $this->app->register(\Rollbar\Laravel\RollbarServiceProvider::class);
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
use Monolog\Handler\StreamHandler; use Monolog\Handler\StreamHandler;
return [ $config = [
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
...@@ -44,6 +44,7 @@ return [ ...@@ -44,6 +44,7 @@ return [
'level' => env('APP_LOG_LEVEL', 'error'), 'level' => env('APP_LOG_LEVEL', 'error'),
], ],
'daily' => [ 'daily' => [
'driver' => 'daily', 'driver' => 'daily',
'path' => storage_path('logs/laravel.log'), 'path' => storage_path('logs/laravel.log'),
...@@ -51,6 +52,13 @@ return [ ...@@ -51,6 +52,13 @@ return [
'days' => env('APP_LOG_MAX_FILES', 5), 'days' => env('APP_LOG_MAX_FILES', 5),
], ],
'rollbar' => [
'driver' => 'monolog',
'handler' => \Rollbar\Laravel\MonologHandler::class,
'access_token' => env('ROLLBAR_TOKEN'),
'level' => env('APP_LOG_LEVEL', 'debug'),
],
'slack' => [ 'slack' => [
'driver' => 'slack', 'driver' => 'slack',
'url' => env('LOG_SLACK_WEBHOOK_URL'), 'url' => env('LOG_SLACK_WEBHOOK_URL'),
...@@ -85,3 +93,10 @@ return [ ...@@ -85,3 +93,10 @@ return [
], ],
]; ];
if ((env('APP_ENV')=='production') && env('ROLLBAR_TOKEN')) {
array_push($config['channels']['stack']['channels'], 'rollbar');
}
return $config;
\ No newline at end of file
...@@ -50,11 +50,6 @@ return [ ...@@ -50,11 +50,6 @@ return [
'stripe_id' => env('STUNNING_STRIPE_ID'), 'stripe_id' => env('STUNNING_STRIPE_ID'),
], ],
'rollbar' => [
'access_token' => env('ROLLBAR_TOKEN'),
'level' => env('ROLLBAR_LEVEL', 'error'),
],
'google' => [ 'google' => [
'maps_api_key' => env('GOOGLE_MAPS_API') 'maps_api_key' => env('GOOGLE_MAPS_API')
], ],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment