Trace/ Track Yii Error Information And Store It In Database

Hi everyone,

I’m working on my college project, I just want to track the error and its information. The error info should get stored in the database with the users source device info (for source device detection I’m using MobileDetect extension). I just want to know where should I write the code so that I can get all error information.

Thanks in advance,

Dhanendran R

Erros about … ?

Like PHP error, browser compatibility error, server down error…