Thirsty Learner
Thirsty Learner

Reputation: 39

In yii how do I log every user's requests or actions for audit and analysis

I want to log every visitor's behavior

How do I achieve that?

Upvotes: -1

Views: 1982

Answers (1)

Manquer
Manquer

Reputation: 7647

There are readily available extensions for this I have used this extension for most of your use cases

http://www.yiiframework.com/extension/audittrail/

or the newer version is here

http://www.yiiframework.com/extension/audittrail2/

For 2. you would need to create some client side code js as well,

For 6. Writes can be captured by auditTrail, generally DB reads i don't advise capturing, as it generates a lot of data and causes significant overhead.

Upvotes: 0

Related Questions