although I like the way Yii logs the errors to the file, I’d like to extend it a bit, so that each time an unhandled Exception is thrown (it measn, the user will be notified), instead of providing user with the exception content, I’d like to assign some id (uniqid) to the exception, than log it to the file along with the exception, and display that ID to the user.
Where should I implement this action? The error handling in Yii is quite complex, and I don’t want to interrupt the default behaviors, just to extend it a bit.
Is extending CErrorHandler a proper way of doing this?
however this doesn’t resolve my problem, as the onError seems to be raised after the error is logged to the file, so I can’t append the generated ID to the error message in file.