source: config/logging.php@ 5d1a1f3

develop
Last change on this file since 5d1a1f3 was 51b783f, checked in by beratkjufliju <kufliju@…>, 3 years ago

user errorlog

  • Property mode set to 100644
File size: 3.3 KB
Line 
1<?php
2
3use Monolog\Handler\NullHandler;
4use Monolog\Handler\StreamHandler;
5use Monolog\Handler\SyslogUdpHandler;
6
7return [
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' => [
38// 'stack' => [
39// 'driver' => 'stack',
40// 'channels' => ['single'],
41// 'ignore_exceptions' => false,
42// ],
43//
44// 'single' => [
45// 'driver' => 'single',
46// 'path' => storage_path('logs/laravel.log'),
47// 'level' => env('LOG_LEVEL', 'debug'),
48// ],
49
50 'default' => env('LOG_CHANNEL', 'stack'),
51 'channels' => [
52 'stack' => [
53 'driver' => 'stack',
54 'channels' => ['single'],
55 ],
56 'single' => [
57 'driver' => 'errorlog',
58 'level' => 'debug',
59 ],
60
61 'daily' => [
62 'driver' => 'daily',
63 'path' => storage_path('logs/laravel.log'),
64 'level' => env('LOG_LEVEL', 'debug'),
65 'days' => 14,
66 ],
67
68 'slack' => [
69 'driver' => 'slack',
70 'url' => env('LOG_SLACK_WEBHOOK_URL'),
71 'username' => 'Laravel Log',
72 'emoji' => ':boom:',
73 'level' => env('LOG_LEVEL', 'critical'),
74 ],
75
76 'papertrail' => [
77 'driver' => 'monolog',
78 'level' => env('LOG_LEVEL', 'debug'),
79 'handler' => SyslogUdpHandler::class,
80 'handler_with' => [
81 'host' => env('PAPERTRAIL_URL'),
82 'port' => env('PAPERTRAIL_PORT'),
83 ],
84 ],
85
86 'stderr' => [
87 'driver' => 'monolog',
88 'level' => env('LOG_LEVEL', 'debug'),
89 'handler' => StreamHandler::class,
90 'formatter' => env('LOG_STDERR_FORMATTER'),
91 'with' => [
92 'stream' => 'php://stderr',
93 ],
94 ],
95
96 'syslog' => [
97 'driver' => 'syslog',
98 'level' => env('LOG_LEVEL', 'debug'),
99 ],
100
101 'errorlog' => [
102 'driver' => 'errorlog',
103 'level' => env('LOG_LEVEL', 'debug'),
104 ],
105
106 'null' => [
107 'driver' => 'monolog',
108 'handler' => NullHandler::class,
109 ],
110
111 'emergency' => [
112 'path' => storage_path('logs/laravel.log'),
113 ],
114 ],
115
116];
Note: See TracBrowser for help on using the repository browser.