Activity Logs

Hi All,

I want to log all activity of a users in a log file not in the database.

I have gone through multiple websites. Most of them, suggesting to store logs in the database.

Could you please help me the correct way, how can I achieve user logging in core PHP application.

Any help would be appreciated.

Thanks

If it’s Yii you can use built-in logging facility which is well covered in official documentation.

You probably want to use an audit library ?

Try one of these: https://packagist.org/search/?q=audit