yii-audit-module

Track and display usage information including page requests, database field changes, php errors and yii logs.
19 followers

Yii Audit Module

Track and display usage information including page requests, database field changes, php errors and yii logs.

Features

Visitor Request Tracking

  • Track site activity including everything you need to know about the request.
  • The error handler will automatically create an AuditRequest record for each visitor hit.
  • When the application ends it will update the AuditRequest with memory and time information.

Tracks the following information:

  • Links - Requested URL, referring URL, redirecting to URL (read from the headers at the end of the application)
  • User - Visitors IP Address and logged in user's ID
  • Superglobals - ($_GET/$_POST/$_SESSION/$_FILES/$_COOKIE), the arrays are serialized then compressed using gzip
  • Timers - Start and end times of the application
  • Memory - Memory usage and peak memory usage

Model Field Tracking

  • Tracks the old and new values each time your model is saved.
  • Behavior can easily be attached to any model you want to track field changes.
  • Each field change is related to an AuditRequest so you can see the entire state of the visitors action.
  • Performs multiple inserts in a single query with CDbCommandBuilder::createMultipleInsertCommand().
  • Provides views that can be rendered into your application to show changed fields for your model.

Error Tracking

  • Full error stack dump is saved, even in live mode.
  • Catches all errors, including fatal errors.
  • View all the collected data from the module interface.
  • Each error is related to an AuditRequest so you can see the entire state of the visitors action.

Log Tracking

  • Save logs to your database for easy real-time debugging or for checking on historical logs.
  • Each log is related to an AuditRequest so you can see the entire state of the visitors action.

Resources

Mr PHP Project Stats

Latest Stable Version Build Status

Support

License

BSD-3-Clause, Copyright © 2013-2014 Mr PHP

Total 10 comments

#17331 report it
cornernote at 2014/05/24 08:41pm
htmlspecialchars(): Invalid multibyte sequence in argument

Hi @pinkjaimee,

Please report your issue at https://github.com/cornernote/yii-audit-module/issues/new so that I can address it formally.

Guest and console scripts are logged as user_id=0.

#17330 report it
pinkjaimee at 2014/05/24 05:11pm
htmlspecialchars(): Invalid multibyte sequence in argument

I'm getting this error. htmlspecialchars(): Invalid multibyte sequence in argument. I do have 'charset' => 'utf8' in my db.

How does this handle guest user since there is no user_id?

#16993 report it
cornernote at 2014/04/20 08:33pm
Yii 2 compatible

Hi @mxd,

It's not currently compatible with Yii2, but we have plans to do so in the future, however there is no ETA on when we may be able to do it.

#16992 report it
mxd at 2014/04/20 10:58am
Yii 2 compatible?

Is the audit module or will it be compatible with Yii 2 (beta)?

#16968 report it
cornernote at 2014/04/17 03:33am
no search button

@JbalTero, not sure why you see no search button. Can you create an issue on github with a screenshot?

https://github.com/cornernote/yii-audit-module/issues/new

#16967 report it
JbalTero at 2014/04/17 03:07am
Nice.

I've got this problem, in audit/log/index, there's no search button. :( How can I solve this?

#16949 report it
cornernote at 2014/04/16 02:50am
access the Module Homepage

Hi @JbalTero,

You just visit yoursite.com/audit

#16948 report it
JbalTero at 2014/04/16 02:44am
Module Homepage Access

How do I access the Module Homepage?

#16209 report it
cornernote at 2014/01/28 09:01pm
Thanks for the feedback.

Hey @beesho,

AuditActiveRecord.php does not have a line 386.

Can you please post bug-reports in the issue tracker, they are a lot easier to manager there than in these comments.

#16196 report it
beesho at 2014/01/27 07:56am
Maximum function nesting level reached

I was trying to manually install this extension, but I always got this error: "Fatal error: Maximum function nesting level of '100' reached, aborting! in C:*****\protected\modules\audit\components\AuditActiveRecord.php on line 386" PS: No matter how I increase 'xdebug.max_nesting_level' it still aborts after reaching the increased level. I have checked the configuration very well, as well as the module path but couldn't get it to work. Any suggestions?

Leave a comment

Please to leave your comment.

Create extension