grenhaz / yii2-userlog
Yii2 Log file by user
1.0.0
2018-03-13 17:52 UTC
Requires
- yiisoft/yii2: ~2.0.6
This package is not auto-updated.
Last update: 2026-03-01 13:52:07 UTC
README
For license information check the LICENSE-file.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist grenhaz/yii2-userlog
or add
"grenhaz/yii2-userlog": "~1.0.0"
to the require section of your composer.json.
Basic Usage
'log' => [ 'targets' => [ [ 'class' => 'grenhaz/userlog/UserLogger', 'name' => 'user_basic', ], ], ],
Log file location:
runtime/logs/{user_id}/{name}.log