X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/213e9d2941dbedbce8fd639fbf09552ac72ad728..refs/pull/1881/head:/app/Config/logging.php diff --git a/app/Config/logging.php b/app/Config/logging.php index 880b35453..406b9f2f9 100644 --- a/app/Config/logging.php +++ b/app/Config/logging.php @@ -1,5 +1,6 @@ [ 'stack' => [ 'driver' => 'stack', - 'channels' => ['single'], + 'channels' => ['daily'], + 'ignore_exceptions' => false, ], 'single' => [ 'driver' => 'single', 'path' => storage_path('logs/laravel.log'), 'level' => 'debug', + 'days' => 14, ], 'daily' => [ @@ -69,6 +72,16 @@ return [ 'driver' => 'errorlog', 'level' => 'debug', ], + + 'null' => [ + 'driver' => 'monolog', + 'handler' => NullHandler::class, + ], ], -]; \ No newline at end of file + // Failed Access Message + // Defines the message to log into webserver logs in case of failed access, + // for further processing by tools like Fail2Ban. + 'failed_access_message' => env('FAILED_ACCESS_MESSAGE', ''), + +];