Changeset View
Changeset View
Standalone View
Standalone View
src/config/logging.php
Show All 24 Lines | return [ | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
| | | | ||||
| This option controls the log channel that should be used to log warnings | | This option controls the log channel that should be used to log warnings | ||||
| regarding deprecated PHP and library features. This allows you to get | | regarding deprecated PHP and library features. This allows you to get | ||||
| your application ready for upcoming major versions of dependencies. | | your application ready for upcoming major versions of dependencies. | ||||
| | | | ||||
*/ | */ | ||||
'deprecations' => env('LOG_DEPRECATIONS_CHANNEL', 'null'), | 'deprecations' => [ | ||||
'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'), | |||||
'trace' => false, | |||||
], | |||||
/* | /* | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
| Log Channels | | Log Channels | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
| | | | ||||
| Here you may configure the log channels for your application. Out of | | Here you may configure the log channels for your application. Out of | ||||
| the box, Laravel uses the Monolog PHP logging library. This gives | | the box, Laravel uses the Monolog PHP logging library. This gives | ||||
| you a variety of powerful log handlers / formatters to utilize. | | you a variety of powerful log handlers / formatters to utilize. | ||||
| | | | ||||
| Available Drivers: "single", "daily", "slack", "syslog", | | Available Drivers: "single", "daily", "slack", "syslog", | ||||
| "errorlog", "monolog", | | "errorlog", "monolog", | ||||
| "custom", "stack" | | "custom", "stack" | ||||
| | | | ||||
*/ | */ | ||||
'channels' => [ | 'channels' => [ | ||||
'stack' => [ | 'stack' => [ | ||||
'driver' => 'stack', | 'driver' => 'stack', | ||||
'channels' => ['daily'], | 'channels' => ['daily'], | ||||
'ignore_exceptions' => false, | 'ignore_exceptions' => false, | ||||
'replace_placeholders' => true, | |||||
], | ], | ||||
'single' => [ | 'single' => [ | ||||
'driver' => 'single', | 'driver' => 'single', | ||||
'path' => storage_path('logs/laravel.log'), | 'path' => storage_path('logs/laravel.log'), | ||||
'level' => env('LOG_LEVEL', 'debug'), | 'level' => env('LOG_LEVEL', 'debug'), | ||||
'replace_placeholders' => true, | |||||
], | ], | ||||
'daily' => [ | 'daily' => [ | ||||
'driver' => 'daily', | 'driver' => 'daily', | ||||
'path' => storage_path('logs/laravel.log'), | 'path' => storage_path('logs/laravel.log'), | ||||
'level' => env('LOG_LEVEL', 'debug'), | 'level' => env('LOG_LEVEL', 'debug'), | ||||
'days' => 14, | 'days' => 14, | ||||
'replace_placeholders' => true, | |||||
], | ], | ||||
'slack' => [ | 'slack' => [ | ||||
'driver' => 'slack', | 'driver' => 'slack', | ||||
'url' => env('LOG_SLACK_WEBHOOK_URL'), | 'url' => env('LOG_SLACK_WEBHOOK_URL'), | ||||
'username' => 'Laravel Log', | 'username' => 'Laravel Log', | ||||
'emoji' => ':boom:', | 'emoji' => ':boom:', | ||||
'level' => env('LOG_LEVEL', 'critical'), | 'level' => env('LOG_LEVEL', 'critical'), | ||||
'replace_placeholders' => true, | |||||
], | ], | ||||
'papertrail' => [ | 'papertrail' => [ | ||||
'driver' => 'monolog', | 'driver' => 'monolog', | ||||
'level' => env('LOG_LEVEL', 'debug'), | 'level' => env('LOG_LEVEL', 'debug'), | ||||
'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class), | 'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class), | ||||
'handler_with' => [ | 'handler_with' => [ | ||||
'host' => env('PAPERTRAIL_URL'), | 'host' => env('PAPERTRAIL_URL'), | ||||
Show All 20 Lines | 'channels' => [ | ||||
'with' => [ | 'with' => [ | ||||
'stream' => 'php://stdout', | 'stream' => 'php://stdout', | ||||
], | ], | ||||
], | ], | ||||
'syslog' => [ | 'syslog' => [ | ||||
'driver' => 'syslog', | 'driver' => 'syslog', | ||||
'level' => env('LOG_LEVEL', 'debug'), | 'level' => env('LOG_LEVEL', 'debug'), | ||||
'facility' => LOG_USER, | |||||
'replace_placeholders' => true, | |||||
], | ], | ||||
'errorlog' => [ | 'errorlog' => [ | ||||
'driver' => 'errorlog', | 'driver' => 'errorlog', | ||||
'level' => env('LOG_LEVEL', 'debug'), | 'level' => env('LOG_LEVEL', 'debug'), | ||||
'replace_placeholders' => true, | |||||
], | ], | ||||
'null' => [ | 'null' => [ | ||||
'driver' => 'monolog', | 'driver' => 'monolog', | ||||
'handler' => NullHandler::class, | 'handler' => NullHandler::class, | ||||
], | ], | ||||
'emergency' => [ | 'emergency' => [ | ||||
'path' => storage_path('logs/laravel.log'), | 'path' => storage_path('logs/laravel.log'), | ||||
], | ], | ||||
], | ], | ||||
]; | ]; |