cornernote / yii-audit-module

Track and display usage information including page requests, database field changes, php errors and yii logs.
https://cornernote.github.io/yii-audit-module
Other
22 stars 13 forks source link

New Feature Idea: app-id #24

Closed gb5256 closed 10 years ago

gb5256 commented 10 years ago

This is a feature request. So just an idea. I do have several applications running on the same tables (like one frontend app, one admin backend, on mobile). Those run on different subdomains, so I can see in the referer field of yiiAudit/request where they come from. So far so good. As I am right now creating a dashboard with some statistics, I right now create MYSQL statements with LIKE to retrieve only those from specific referers, which is not that cool for performance. So the feature idea is to have a new column in yiiAudit tables where a App-ID can be stored. Then we could put a new parameter into the config of each app (like App-ID = 1) which will be stored for each call from that app. Then all statistics are much easier, and I can even compare the different apps.

This is just an idea, no demand :-). Perhaps it is too specific, but I can also think of other reasons to be able to store a special value in a custom column, like debugging etc.

Anyway: Love your extension.

PS: the statistic-views I create are based on Highcharts and will be like a Dashboard of NewRelic. If you want, I can send you a screenshot so that you can consider if you want to add it as a optional view to your extension.

cornernote commented 10 years ago

Cool idea - done.

If you have views for reports you would like to see in the module, please do a pull request and I'd be really happy to check it out.