dev-master
9999999-devComponent is a Yii 2 wrapper of Log
BSD-3-Clause
The Requires
by Max Frolov
logger log yii2 yii 2 widget event multilogger
Component is a Yii 2 wrapper of Log
This component is a Yii 2 wrapper of Log., (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist frmaxm/simple-event-log "dev-master"
or add, (*4)
"frmaxm/simple-event-log": "dev-master"
to the require section of your composer.json
file., (*5)
Edit bootstrap
section in your application config file:, (*6)
'bootstrap' => [ 'model_log'=>[ 'class'=>'frmaxm\logger\bootstrap\ModelLogBootstrap', 'category'=>'admin', ], 'log'=>[ 'class'=>'yii\log\Logger', 'flushInterval' => 50, ], ]
Edit log
component in your application config file:, (*7)
'log' => [ 'traceLevel' => YII_DEBUG ? 3 : 0, 'targets' => [ [ 'class' => 'yii\log\DbTarget', 'categories' => ['model.*'], ], ], ]
Add new table EventLog
to your database., (*8)
Run module migration:, (*9)
php yii migrate --migrationPath=@frmaxm/simple-event-logger/migrations
All events on the model will be recorded in the Event Log table. This will allow you to see all the user's actions., (*10)
Component is a Yii 2 wrapper of Log
BSD-3-Clause
logger log yii2 yii 2 widget event multilogger