Yii Framework Forum: Activity Logs - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Activity Logs Rate Topic: -----

#1 User is offline   raghavAgarwal 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 57
  • Joined: 21-March 13
  • Location:Gurgaon

Posted 16 December 2016 - 02:35 AM

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
0

#2 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,184
  • Joined: 17-January 09
  • Location:Russia

Posted 16 December 2016 - 06:17 AM

If it's Yii you can use built-in logging facility which is well covered in official documentation.
Yii 2.0 Development Cookbook

Enjoying Yii? Star us at github

Support me so I can work more on Yii: https://www.patreon.com/samdark
0

#3 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 3,694
  • Joined: 10-October 10
  • Location:Denmark

Posted 16 December 2016 - 06:56 AM

You probably want to use an audit library ?

Try one of these: https://packagist.org/search/?q=audit
"Less noise - more signal"
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users