source: config/logging.php@ 0c07a90

Last change on this file since 0c07a90 was 0924b6c, checked in by Özkan İliyaz <iliyaz_96@…>, 4 years ago

initial commit

  • Property mode set to 100644
File size: 2.6 KB
Line 
1<?php
2
3use Monolog\Handler\StreamHandler;
4use Monolog\Handler\SyslogUdpHandler;
5
6return [
7
8 /*
9 |--------------------------------------------------------------------------
10 | Default Log Channel
11 |--------------------------------------------------------------------------
12 |
13 | This option defines the default log channel that gets used when writing
14 | messages to the logs. The name specified in this option should match
15 | one of the channels defined in the "channels" configuration array.
16 |
17 */
18
19 'default' => env('LOG_CHANNEL', 'stack'),
20
21 /*
22 |--------------------------------------------------------------------------
23 | Log Channels
24 |--------------------------------------------------------------------------
25 |
26 | Here you may configure the log channels for your application. Out of
27 | the box, Laravel uses the Monolog PHP logging library. This gives
28 | you a variety of powerful log handlers / formatters to utilize.
29 |
30 | Available Drivers: "single", "daily", "slack", "syslog",
31 | "errorlog", "monolog",
32 | "custom", "stack"
33 |
34 */
35
36 'channels' => [
37 'stack' => [
38 'driver' => 'stack',
39 'channels' => ['daily'],
40 'ignore_exceptions' => false,
41 ],
42
43 'single' => [
44 'driver' => 'single',
45 'path' => storage_path('logs/laravel.log'),
46 'level' => 'debug',
47 ],
48
49 'daily' => [
50 'driver' => 'daily',
51 'path' => storage_path('logs/laravel.log'),
52 'level' => 'debug',
53 'days' => 14,
54 ],
55
56 'slack' => [
57 'driver' => 'slack',
58 'url' => env('LOG_SLACK_WEBHOOK_URL'),
59 'username' => 'Laravel Log',
60 'emoji' => ':boom:',
61 'level' => 'critical',
62 ],
63
64 'papertrail' => [
65 'driver' => 'monolog',
66 'level' => 'debug',
67 'handler' => SyslogUdpHandler::class,
68 'handler_with' => [
69 'host' => env('PAPERTRAIL_URL'),
70 'port' => env('PAPERTRAIL_PORT'),
71 ],
72 ],
73
74 'stderr' => [
75 'driver' => 'monolog',
76 'handler' => StreamHandler::class,
77 'formatter' => env('LOG_STDERR_FORMATTER'),
78 'with' => [
79 'stream' => 'php://stderr',
80 ],
81 ],
82
83 'syslog' => [
84 'driver' => 'syslog',
85 'level' => 'debug',
86 ],
87
88 'errorlog' => [
89 'driver' => 'errorlog',
90 'level' => 'debug',
91 ],
92 ],
93
94];
Note: See TracBrowser for help on using the repository browser.