blessing-skin-server/config/logging.php

77 lines
2.1 KiB
PHP
Raw Normal View History

2018-07-14 14:48:20 +08:00
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Log Channel
|--------------------------------------------------------------------------
|
| This option defines the default log channel that gets used when writing
| messages to the logs. The name specified in this option should match
| one of the channels defined in the "channels" configuration array.
|
*/
2018-09-10 17:29:05 +08:00
'default' => env('LOG_CHANNEL', 'stack'),
2018-07-14 14:48:20 +08:00
/*
|--------------------------------------------------------------------------
| Log Channels
|--------------------------------------------------------------------------
|
| Here you may configure the log channels for your application. Out of
| the box, Laravel uses the Monolog PHP logging library. This gives
| you a variety of powerful log handlers / formatters to utilize.
|
| Available Drivers: "single", "daily", "slack", "syslog",
| "errorlog", "custom", "stack"
|
*/
'channels' => [
'stack' => [
'driver' => 'stack',
2019-09-07 13:01:44 +08:00
'channels' => ['daily'],
'ignore_exceptions' => false,
2018-07-14 14:48:20 +08:00
],
'single' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),
'level' => 'debug',
],
'daily' => [
'driver' => 'daily',
'path' => storage_path('logs/laravel.log'),
'level' => 'debug',
'days' => 7,
],
'slack' => [
'driver' => 'slack',
'url' => env('LOG_SLACK_WEBHOOK_URL'),
'username' => 'Laravel Log',
'emoji' => ':boom:',
'level' => 'critical',
],
'syslog' => [
'driver' => 'syslog',
'level' => 'debug',
],
'errorlog' => [
'driver' => 'errorlog',
'level' => 'debug',
],
2019-07-26 15:58:13 +08:00
'black-hole' => [
'driver' => 'monolog',
'handler' => Monolog\Handler\NullHandler::class,
],
2018-07-14 14:48:20 +08:00
],
];