Yii2.0框架的日志操作如下,大概有五种方式:
Yii::getLogger()->log($message, $level, $category = 'application')
Yii::trace($message, $category = 'application');
Yii::error($message, $category = 'application');
Yii::warning($message, $category = 'application');
Yii::info($message, $category = 'application');