How To Log All Events In Yii Via Txt File

hi, how to log all the events happening in a Yii app via a "txt file" ?,

let’s say I have this app made of Yii, now whenever there are users who use the site,

I want every thing they do to be logged in a txt file such as e.g

  • inserting record

  • deleting record

  • updating record

so that i will know where exactly is the error that took place if there’s any at real time

Have you read the Yii guide? Seems core logging functionality is all you need: