What is the easiest way to log all the actions to a file or database?
I am planning to create a function, which I will put in all the actions in all the controllers ,which will log what action was tripped,what time,from what IP,what username,etc., into the database (or a log file, whichever I find faster), but just thinking about it makes me tired and bored already.
I have already checked the logging features of Yii here, but I think it just logs everything, plus there is not enough example which just makes me feel less intelligent. What I just want is to log the action, who tripped it, and all the details I could think of.
I am planning to create a function, which I will put in all the actions in all the controllers ,which will log what action was tripped,what time,from what IP,what username,etc., into the database (or a log file, whichever I find faster), but just thinking about it makes me tired and bored already.
I have already checked the logging features of Yii here, but I think it just logs everything, plus there is not enough example which just makes me feel less intelligent. What I just want is to log the action, who tripped it, and all the details I could think of.