配置
config\logging.php
'pay_abnormal' => [
'driver' => 'daily',
'path' => storage_path('logs/abnormal/pay_abnormal.log'),
'level' => 'debug',
'days' => 14,
]
使用
use Illuminate\Support\Facades\Log;
Log::channel('pay_abnormal')->info('支付异常');
配置
config\logging.php
'pay_abnormal' => [
'driver' => 'daily',
'path' => storage_path('logs/abnormal/pay_abnormal.log'),
'level' => 'debug',
'days' => 14,
]
使用
use Illuminate\Support\Facades\Log;
Log::channel('pay_abnormal')->info('支付异常');