Logger issues in CEmailLogRoute and errorController

Hi all,

There is some weird behavior we’re encountering with loggers, hopefully someone can help. So, let’s say I have error triggered in my CEmailLogRoute (reproducible on one server, on other I have to trigger php error manually with trigger_error()). I’ve tried to put Yii::log there, to log anything before error is triggered, no luck.

After that, I’ve tried to put Yii::log() in actionError in site controller. Although I can confirm that my code went into that code, print_r actually prints error, but nothing is actually logged.

print_r(Yii::app()->errorHandler->error); <- works

Yii::log(Yii::app()->errorHandler->error,‘error’); <- not working

Thanks