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'),
24 // Deprecations Log Channel
25 // This option controls the log channel that should be used to log warnings
26 // regarding deprecated PHP and library features. This allows you to get
27 // your application ready for upcoming major versions of dependencies.
34 // Here you may configure the log channels for your application. Out of
35 // the box, Laravel uses the Monolog PHP logging library. This gives
36 // you a variety of powerful log handlers / formatters to utilize.
37 // Available Drivers: "single", "daily", "slack", "syslog",
38 // "errorlog", "monolog",
43 'channels' => ['daily'],
44 'ignore_exceptions' => false,
49 'path' => storage_path('logs/laravel.log'),
56 'path' => storage_path('logs/laravel.log'),
62 'driver' => 'monolog',
64 'handler' => StreamHandler::class,
66 'stream' => 'php://stderr',
76 'driver' => 'errorlog',
80 // Custom errorlog implementation that logs out a plain,
81 // non-formatted message intended for the webserver log.
82 'errorlog_plain_webserver' => [
83 'driver' => 'monolog',
85 'handler' => ErrorLogHandler::class,
86 'handler_with' => [4],
87 'formatter' => LineFormatter::class,
89 'format' => '%message%',
94 'driver' => 'monolog',
95 'handler' => NullHandler::class,
99 // Uses a shared testing instance during tests
100 // so that logs can be checked against.
102 'driver' => 'testing',
106 'path' => storage_path('logs/laravel.log'),
110 // Failed Login Message
111 // Allows a configurable message to be logged when a login request fails.
113 'message' => env('LOG_FAILED_LOGIN_MESSAGE', null),
114 'channel' => env('LOG_FAILED_LOGIN_CHANNEL', 'errorlog_plain_webserver'),