getFile(), $e->getLine(), $e->getMessage()); } /** * 记录错误信息到日志 * * @param string $msg * @param string $params * @return void */ public static function log(string $title, Exception $e) { Yii::$app->custom->logs( $title . '「' . static::getExceptionMsg($e) . '」' ); } }