]> BookStack Code Mirror - bookstack/blob - app/Config/logging.php
Add git to the apt-get install packages.
[bookstack] / app / Config / logging.php
1 <?php
2
3 use Monolog\Handler\NullHandler;
4 use Monolog\Handler\StreamHandler;
5
6 /**
7  * Logging configuration options.
8  *
9  * Changes to these config files are not supported by BookStack and may break upon updates.
10  * Configuration should be altered via the `.env` file or environment variables.
11  * Do not edit this file unless you're happy to maintain any changes yourself.
12  */
13
14 return [
15
16     // Default Log Channel
17     // This option defines the default log channel that gets used when writing
18     // messages to the logs. The name specified in this option should match
19     // one of the channels defined in the "channels" configuration array.
20     'default' => env('LOG_CHANNEL', 'single'),
21
22     // Log Channels
23     // Here you may configure the log channels for your application. Out of
24     // the box, Laravel uses the Monolog PHP logging library. This gives
25     // you a variety of powerful log handlers / formatters to utilize.
26     // Available Drivers: "single", "daily", "slack", "syslog",
27     //                    "errorlog", "monolog",
28     //                    "custom", "stack"
29     'channels' => [
30         'stack' => [
31             'driver' => 'stack',
32             'channels' => ['daily'],
33             'ignore_exceptions' => false,
34         ],
35
36         'single' => [
37             'driver' => 'single',
38             'path' => storage_path('logs/laravel.log'),
39             'level' => 'debug',
40             'days' => 14,
41         ],
42
43         'daily' => [
44             'driver' => 'daily',
45             'path' => storage_path('logs/laravel.log'),
46             'level' => 'debug',
47             'days' => 7,
48         ],
49
50         'slack' => [
51             'driver' => 'slack',
52             'url' => env('LOG_SLACK_WEBHOOK_URL'),
53             'username' => 'Laravel Log',
54             'emoji' => ':boom:',
55             'level' => 'critical',
56         ],
57
58         'stderr' => [
59             'driver' => 'monolog',
60             'handler' => StreamHandler::class,
61             'with' => [
62                 'stream' => 'php://stderr',
63             ],
64         ],
65
66         'syslog' => [
67             'driver' => 'syslog',
68             'level' => 'debug',
69         ],
70
71         'errorlog' => [
72             'driver' => 'errorlog',
73             'level' => 'debug',
74         ],
75
76         'null' => [
77             'driver' => 'monolog',
78             'handler' => NullHandler::class,
79         ],
80     ],
81
82 ];
Morty Proxy This is a proxified and sanitized view of the page, visit original site.