共计 280 个字符,预计需要花费 1 分钟才能阅读完成。
直接上代码:
‘log’ => [
‘traceLevel’ => YII_DEBUG ? 3 : 0,
‘targets’ => [
[
‘class’ => ‘yii\log\FileTarget’,
‘levels’ => [‘error’],
‘logFile’ => ‘@runtime/logs/’.date(‘Ym’).’/app.error.log’,
],
[
‘class’ => ‘yii\log\FileTarget’,
‘levels’ => [‘warning’],
‘logFile’ => ‘@runtime/logs/’.date(‘Ym’).’/app.warning.log’,
],
],
],
正文完