3 use Monolog\Formatter\LineFormatter;
4 use Monolog\Handler\ErrorLogHandler;
5 use Monolog\Handler\NullHandler;
6 use Monolog\Handler\StreamHandler;
7 use Monolog\Processor\PsrLogMessageProcessor;
10 * Logging configuration options.
12 * Changes to these config files are not supported by BookStack and may break upon updates.
13 * Configuration should be altered via the `.env` file or environment variables.
14 * Do not edit this file unless you're happy to maintain any changes yourself.
19 // Default Log Channel
20 // This option defines the default log channel that gets used when writing
21 // messages to the logs. The name specified in this option should match
22 // one of the channels defined in the "channels" configuration array.
23 'default' => env('LOG_CHANNEL', 'single'),
25 // Deprecations Log Channel
26 // This option controls the log channel that should be used to log warnings
27 // regarding deprecated PHP and library features. This allows you to get
28 // your application ready for upcoming major versions of dependencies.
35 // Here you may configure the log channels for your application. Out of
36 // the box, Laravel uses the Monolog PHP logging library. This gives
37 // you a variety of powerful log handlers / formatters to utilize.
38 // Available Drivers: "single", "daily", "slack", "syslog",
39 // "errorlog", "monolog",
44 'channels' => ['daily'],
45 'ignore_exceptions' => false,
50 'path' => storage_path('logs/laravel.log'),
53 'replace_placeholders' => true,
58 'path' => storage_path('logs/laravel.log'),
61 'replace_placeholders' => true,
65 'driver' => 'monolog',
67 'handler' => StreamHandler::class,
69 'stream' => 'php://stderr',
71 'processors' => [PsrLogMessageProcessor::class],
77 'facility' => LOG_USER,
78 'replace_placeholders' => true,
82 'driver' => 'errorlog',
84 'replace_placeholders' => true,
87 // Custom errorlog implementation that logs out a plain,
88 // non-formatted message intended for the webserver log.
89 'errorlog_plain_webserver' => [
90 'driver' => 'monolog',
92 'handler' => ErrorLogHandler::class,
93 'handler_with' => [4],
94 'formatter' => LineFormatter::class,
96 'format' => '%message%',
98 'replace_placeholders' => true,
102 'driver' => 'monolog',
103 'handler' => NullHandler::class,
107 // Uses a shared testing instance during tests
108 // so that logs can be checked against.
110 'driver' => 'testing',
114 'path' => storage_path('logs/laravel.log'),
118 // Failed Login Message
119 // Allows a configurable message to be logged when a login request fails.
121 'message' => env('LOG_FAILED_LOGIN_MESSAGE', null),
122 'channel' => env('LOG_FAILED_LOGIN_CHANNEL', 'errorlog_plain_webserver'),