$time = microtime(true);
$log = new FileTarget();
$log->logFile = Yii::$app->getRuntimePath() . '/logs/songlin.log';
$log->messages[] = ['这个地方出问题了:'.$data.PHP_EOL ,1,'aaaa',$time];
$log->export();
$time = microtime(true);
$log = new FileTarget();
$log->logFile = Yii::$app->getRuntimePath() . '/logs/songlin.log';
$log->messages[] = ['这个地方出问题了:'.$data.PHP_EOL ,1,'aaaa',$time];
$log->export();
本文标题:yii2 自定义日志文件路径,方便调试
本文链接:https://www.haomeiwen.com/subject/oltorhtx.html
网友评论