]> git.localhorst.tv Git - alttp.git/blob - config/logging.php
fix manual heart pieces
[alttp.git] / config / logging.php
1 <?php
2
3 use Monolog\Handler\NullHandler;
4 use Monolog\Handler\StreamHandler;
5 use Monolog\Handler\SyslogUdpHandler;
6
7 return [
8
9     /*
10     |--------------------------------------------------------------------------
11     | Default Log Channel
12     |--------------------------------------------------------------------------
13     |
14     | This option defines the default log channel that gets used when writing
15     | messages to the logs. The name specified in this option should match
16     | one of the channels defined in the "channels" configuration array.
17     |
18     */
19
20     'default' => env('LOG_CHANNEL', 'stack'),
21
22     /*
23     |--------------------------------------------------------------------------
24     | Deprecations Log Channel
25     |--------------------------------------------------------------------------
26     |
27     | This option controls the log channel that should be used to log warnings
28     | regarding deprecated PHP and library features. This allows you to get
29     | your application ready for upcoming major versions of dependencies.
30     |
31     */
32
33     'deprecations' => env('LOG_DEPRECATIONS_CHANNEL', 'null'),
34
35     /*
36     |--------------------------------------------------------------------------
37     | Log Channels
38     |--------------------------------------------------------------------------
39     |
40     | Here you may configure the log channels for your application. Out of
41     | the box, Laravel uses the Monolog PHP logging library. This gives
42     | you a variety of powerful log handlers / formatters to utilize.
43     |
44     | Available Drivers: "single", "daily", "slack", "syslog",
45     |                    "errorlog", "monolog",
46     |                    "custom", "stack"
47     |
48     */
49
50     'channels' => [
51         'stack' => [
52             'driver' => 'stack',
53             'channels' => ['single'],
54             'ignore_exceptions' => false,
55         ],
56
57         'single' => [
58             'driver' => 'single',
59             'path' => storage_path('logs/laravel.log'),
60             'level' => env('LOG_LEVEL', 'debug'),
61         ],
62
63         'daily' => [
64             'driver' => 'daily',
65             'path' => storage_path('logs/laravel.log'),
66             'level' => env('LOG_LEVEL', 'debug'),
67             'days' => 14,
68         ],
69
70         'slack' => [
71             'driver' => 'slack',
72             'url' => env('LOG_SLACK_WEBHOOK_URL'),
73             'username' => 'Laravel Log',
74             'emoji' => ':boom:',
75             'level' => env('LOG_LEVEL', 'critical'),
76         ],
77
78         'papertrail' => [
79             'driver' => 'monolog',
80             'level' => env('LOG_LEVEL', 'debug'),
81             'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class),
82             'handler_with' => [
83                 'host' => env('PAPERTRAIL_URL'),
84                 'port' => env('PAPERTRAIL_PORT'),
85                 'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'),
86             ],
87         ],
88
89         'stderr' => [
90             'driver' => 'monolog',
91             'level' => env('LOG_LEVEL', 'debug'),
92             'handler' => StreamHandler::class,
93             'formatter' => env('LOG_STDERR_FORMATTER'),
94             'with' => [
95                 'stream' => 'php://stderr',
96             ],
97         ],
98
99         'syslog' => [
100             'driver' => 'syslog',
101             'level' => env('LOG_LEVEL', 'debug'),
102         ],
103
104         'errorlog' => [
105             'driver' => 'errorlog',
106             'level' => env('LOG_LEVEL', 'debug'),
107         ],
108
109         'null' => [
110             'driver' => 'monolog',
111             'handler' => NullHandler::class,
112         ],
113
114         'emergency' => [
115             'path' => storage_path('logs/laravel.log'),
116         ],
117     ],
118
119 ];