slavkovrn / yii2-logvisitor
The Yii2 extension to log site requests and draw charts of these requests progress by calendar dates.
Installs: 4 912
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 5
Forks: 0
Open Issues: 1
Type:yii2-extension
Requires
- slavkovrn/yii2-visualize: *
- yiisoft/yii2: ~2.0
- yiisoft/yii2-jui: ~2.0
This package is auto-updated.
Last update: 2024-11-12 04:41:00 UTC
README
The Yii2 extension uses visualize.jQuery.js to draw progress charts of site requests logged by calendar dates.
Installation
The preferred way to install this extension is through composer.
Either run:
composer require slavkovrn/yii2-logvisitor
or add
"slavkovrn/yii2-logvisitor": "*"
to the require section of your composer.json
file.
Usage
To make LogVisitorComponent log site requests
-
- add link to component in your config (in my case it's /config/web.php)
return [ 'components' => [ 'logvisitor' => [ 'class' => 'slavkovrn\logvisitor\LogVisitorComponent' 'filterIp' => '127.0.0.1,213.87.', /* comma separated substrings of IP to be filtered of log in table , begining from first position */ 'filterUri' => '/,debug', /* comma separated substrings of URI to be filtered of log in table */ ], ], ];
-
- add link to log site requests automatically
return [ 'bootstrap' => ['log', 'logvisitor'], ];
To draw charts of requests progress
-
- add link to LogVisitorModule in your config
return [ 'modules' => [ 'logvisitor' => [ 'class' => 'slavkovrn\logvisitor\LogVisitorModule', ], ], ];
and now you can see the charts of site requests in progress by calendar dates via http://yoursite.com/logvisitor url