|
6 | 6 |
|
7 | 7 | return array( |
8 | 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 | | - | Log Channels |
25 | | - |-------------------------------------------------------------------------- |
26 | | - | |
27 | | - | Here you may configure the log channels for your application. Out of |
28 | | - | the box, Laravel uses the Monolog PHP logging library. This gives |
29 | | - | you a variety of powerful log handlers / formatters to utilize. |
30 | | - | |
31 | | - | Available Drivers: "single", "daily", "slack", "syslog", |
32 | | - | "errorlog", "monolog", |
33 | | - | "custom", "stack" |
34 | | - | |
35 | | - */ |
36 | | - |
37 | | - 'channels' => array( |
38 | | - 'stack' => array( |
39 | | - 'driver' => 'stack', |
40 | | - 'channels' => array( 'single' ), |
41 | | - 'ignore_exceptions' => false, |
42 | | - ), |
43 | | - |
44 | | - 'single' => array( |
45 | | - 'driver' => 'errorlog', |
46 | | - 'path' => storage_path( 'logs/laravel.log' ), |
47 | | - 'level' => env( 'LOG_LEVEL', 'debug' ), |
48 | | - ), |
49 | | - |
50 | | - 'daily' => array( |
51 | | - 'driver' => 'errorlog', |
52 | | - 'path' => storage_path( 'logs/laravel.log' ), |
53 | | - 'level' => env( 'LOG_LEVEL', 'debug' ), |
54 | | - 'days' => 14, |
55 | | - ), |
56 | | - |
57 | | - 'slack' => array( |
58 | | - 'driver' => 'errorlog', |
59 | | - 'url' => env( 'LOG_SLACK_WEBHOOK_URL' ), |
60 | | - 'username' => 'Laravel Log', |
61 | | - 'emoji' => ':boom:', |
62 | | - 'level' => env( 'LOG_LEVEL', 'critical' ), |
63 | | - ), |
64 | | - |
65 | | - 'papertrail' => array( |
66 | | - 'driver' => 'errorlog', |
67 | | - 'level' => env( 'LOG_LEVEL', 'debug' ), |
68 | | - 'handler' => SyslogUdpHandler::class, |
69 | | - 'handler_with' => array( |
70 | | - 'host' => env( 'PAPERTRAIL_URL' ), |
71 | | - 'port' => env( 'PAPERTRAIL_PORT' ), |
72 | | - ), |
73 | | - ), |
74 | | - |
75 | | - 'stderr' => array( |
76 | | - 'driver' => 'errorlog', |
77 | | - 'handler' => StreamHandler::class, |
78 | | - 'formatter' => env( 'LOG_STDERR_FORMATTER' ), |
79 | | - 'with' => array( |
80 | | - 'stream' => 'php://stderr', |
81 | | - ), |
82 | | - ), |
83 | | - |
84 | | - 'syslog' => array( |
85 | | - 'driver' => 'errorlog', |
86 | | - 'level' => env( 'LOG_LEVEL', 'debug' ), |
87 | | - ), |
88 | | - |
89 | | - 'errorlog' => array( |
90 | | - 'driver' => 'errorlog', |
91 | | - 'level' => env( 'LOG_LEVEL', 'debug' ), |
92 | | - ), |
93 | | - |
94 | | - 'null' => array( |
95 | | - 'driver' => 'errorlog', |
96 | | - 'handler' => NullHandler::class, |
97 | | - ), |
98 | | - |
99 | | - 'emergency' => array( |
100 | | - 'path' => storage_path( 'logs/laravel.log' ), |
101 | | - ), |
102 | | - ), |
| 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 | + | Log Channels |
| 25 | + |-------------------------------------------------------------------------- |
| 26 | + | |
| 27 | + | Here you may configure the log channels for your application. Out of |
| 28 | + | the box, Laravel uses the Monolog PHP logging library. This gives |
| 29 | + | you a variety of powerful log handlers / formatters to utilize. |
| 30 | + | |
| 31 | + | Available Drivers: "single", "daily", "slack", "syslog", |
| 32 | + | "errorlog", "monolog", |
| 33 | + | "custom", "stack" |
| 34 | + | |
| 35 | + */ |
| 36 | + |
| 37 | + 'channels' => array( |
| 38 | + 'stack' => array( |
| 39 | + 'driver' => 'stack', |
| 40 | + 'channels' => array( 'single' ), |
| 41 | + 'ignore_exceptions' => false, |
| 42 | + ), |
| 43 | + |
| 44 | + 'single' => array( |
| 45 | + 'driver' => 'errorlog', |
| 46 | + 'path' => storage_path('logs/laravel.log'), |
| 47 | + 'level' => env('LOG_LEVEL', 'debug'), |
| 48 | + ), |
| 49 | + |
| 50 | + 'daily' => array( |
| 51 | + 'driver' => 'errorlog', |
| 52 | + 'path' => storage_path('logs/laravel.log'), |
| 53 | + 'level' => env('LOG_LEVEL', 'debug'), |
| 54 | + 'days' => 14, |
| 55 | + ), |
| 56 | + |
| 57 | + 'slack' => array( |
| 58 | + 'driver' => 'errorlog', |
| 59 | + 'url' => env('LOG_SLACK_WEBHOOK_URL'), |
| 60 | + 'username' => 'Laravel Log', |
| 61 | + 'emoji' => ':boom:', |
| 62 | + 'level' => env('LOG_LEVEL', 'critical'), |
| 63 | + ), |
| 64 | + |
| 65 | + 'papertrail' => array( |
| 66 | + 'driver' => 'errorlog', |
| 67 | + 'level' => env('LOG_LEVEL', 'debug'), |
| 68 | + 'handler' => SyslogUdpHandler::class, |
| 69 | + 'handler_with' => array( |
| 70 | + 'host' => env('PAPERTRAIL_URL'), |
| 71 | + 'port' => env('PAPERTRAIL_PORT'), |
| 72 | + ), |
| 73 | + ), |
| 74 | + |
| 75 | + 'stderr' => array( |
| 76 | + 'driver' => 'errorlog', |
| 77 | + 'handler' => StreamHandler::class, |
| 78 | + 'formatter' => env('LOG_STDERR_FORMATTER'), |
| 79 | + 'with' => array( |
| 80 | + 'stream' => 'php://stderr', |
| 81 | + ), |
| 82 | + ), |
| 83 | + |
| 84 | + 'syslog' => array( |
| 85 | + 'driver' => 'errorlog', |
| 86 | + 'level' => env('LOG_LEVEL', 'debug'), |
| 87 | + ), |
| 88 | + |
| 89 | + 'errorlog' => array( |
| 90 | + 'driver' => 'errorlog', |
| 91 | + 'level' => env('LOG_LEVEL', 'debug'), |
| 92 | + ), |
| 93 | + |
| 94 | + 'null' => array( |
| 95 | + 'driver' => 'errorlog', |
| 96 | + 'handler' => NullHandler::class, |
| 97 | + ), |
| 98 | + |
| 99 | + 'emergency' => array( |
| 100 | + 'path' => storage_path('logs/laravel.log'), |
| 101 | + ), |
| 102 | + ), |
103 | 103 |
|
104 | 104 | ); |
0 commit comments