Install AltThree/Logger, prevent HttpExceptionInterface logging

This commit is contained in:
James Brooks
2017-01-06 19:19:51 +00:00
parent b460d61e7a
commit a81c87bed7
5 changed files with 246 additions and 156 deletions

View File

@@ -175,6 +175,7 @@ return [
*/
AltThree\Badger\BadgerServiceProvider::class,
AltThree\Emoji\EmojiServiceProvider::class,
AltThree\Logger\LoggerServiceProvider::class,
BackupManager\Laravel\Laravel5ServiceProvider::class,
Barryvdh\Cors\ServiceProvider::class,
Fideloper\Proxy\TrustedProxyServiceProvider::class,

View File

@@ -106,7 +106,7 @@ return [
'Illuminate\Auth\Access\AuthorizationException' => 'warning',
'Illuminate\Database\Eloquent\ModelNotFoundException' => 'warning',
'Illuminate\Session\TokenMismatchException' => 'notice',
'Symfony\Component\HttpKernel\Exception\HttpExceptionInterface' => 'warning',
'Symfony\Component\HttpKernel\Exception\HttpExceptionInterface' => 'notice',
'Symfony\Component\Debug\Exception\FatalErrorException' => 'critical',
'Exception' => 'error',
],

27
config/logger.php Normal file
View File

@@ -0,0 +1,27 @@
<?php
/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return [
/*
|--------------------------------------------------------------------------
| Loggers
|--------------------------------------------------------------------------
|
| Here are each of the loggers to call under the hood while logging.
|
*/
'loggers' => [
'Illuminate\Log\Writer' => ['warning', 'error', 'critical', 'alert', 'emergency'],
],
];