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'),
54 'url' => env('LOG_SLACK_WEBHOOK_URL'),
55 'username' => 'Laravel Log',
57 'level' => 'critical',
61 'driver' => 'monolog',
62 'handler' => StreamHandler::class,
64 'stream' => 'php://stderr',
74 'driver' => 'errorlog',
78 // Custom errorlog implementation that logs out a plain,
79 // non-formatted message intended for the webserver log.
80 'errorlog_plain_webserver' => [
81 'driver' => 'monolog',
83 'handler' => ErrorLogHandler::class,
84 'handler_with' => [4],
85 'formatter' => LineFormatter::class,
87 'format' => "%message%",
92 'driver' => 'monolog',
93 'handler' => NullHandler::class,
97 // Uses a shared testing instance during tests
98 // so that logs can be checked against.
100 'driver' => 'testing',
105 // Failed Login Message
106 // Allows a configurable message to be logged when a login request fails.
108 'message' => env('LOG_FAILED_LOGIN_MESSAGE', null),
109 'channel' => env('LOG_FAILED_LOGIN_CHANNEL', 'errorlog_plain_webserver'),