自定义日志

配置
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('支付异常');

你可能感兴趣的:(自定义日志)