3 use Monolog\Formatter\LineFormatter;
4 use Monolog\Handler\ErrorLogHandler;
5 use Monolog\Handler\NullHandler;
6 use Monolog\Handler\StreamHandler;
9 * Logging configuration options.
11 * Changes to these config files are not supported by BookStack and may break upon updates.
12 * Configuration should be altered via the `.env` file or environment variables.
13 * Do not edit this file unless you're happy to maintain any changes yourself.
18 // Default Log Channel
19 // This option defines the default log channel that gets used when writing
20 // messages to the logs. The name specified in this option should match
21 // one of the channels defined in the "channels" configuration array.
22 'default' => env('LOG_CHANNEL', 'single'),
25 // Here you may configure the log channels for your application. Out of
26 // the box, Laravel uses the Monolog PHP logging library. This gives
27 // you a variety of powerful log handlers / formatters to utilize.
28 // Available Drivers: "single", "daily", "slack", "syslog",
29 // "errorlog", "monolog",
34 'channels' => ['daily'],
35 'ignore_exceptions' => false,
40 'path' => storage_path('logs/laravel.log'),
47 'path' => storage_path('logs/laravel.log'),
53 'driver' => 'monolog',
55 'handler' => StreamHandler::class,
57 'stream' => 'php://stderr',
67 'driver' => 'errorlog',
71 // Custom errorlog implementation that logs out a plain,
72 // non-formatted message intended for the webserver log.
73 'errorlog_plain_webserver' => [
74 'driver' => 'monolog',
76 'handler' => ErrorLogHandler::class,
77 'handler_with' => [4],
78 'formatter' => LineFormatter::class,
80 'format' => '%message%',
85 'driver' => 'monolog',
86 'handler' => NullHandler::class,
90 // Uses a shared testing instance during tests
91 // so that logs can be checked against.
93 'driver' => 'testing',
97 'path' => storage_path('logs/laravel.log'),
101 // Failed Login Message
102 // Allows a configurable message to be logged when a login request fails.
104 'message' => env('LOG_FAILED_LOGIN_MESSAGE', null),
105 'channel' => env('LOG_FAILED_LOGIN_CHANNEL', 'errorlog_plain_webserver'),