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