yetopen/yii2-usuario-auditlog

This package is abandoned and no longer maintained. No replacement package was suggested.

Log user security related activities

Installs: 78

Dependents: 0

Suggesters: 0

Security: 0

Type:yii2-extension

0.1.1 2019-07-01 16:20 UTC

This package is not auto-updated.

Last update: 2022-02-25 11:49:11 UTC


README

Once installed the extension will load automatically and log security related events of users, like login, logout, password reset.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist yetopen/yii2-usuario-auditlog "*"

or add

"yetopen/yii2-usuario-auditlog": "*"

to the require section of your composer.json file.

 Usage

The extension will load itself by using the bootstrap interface. It will log activities with severity info and category usuario.audit. You can define a custom logfile by declaring a log target in config file like this:

[
    'class' => 'yii\log\FileTarget',
    'levels' => ['info'],
    'categories' => ['usuario.audit'],
    'logFile' => "@runtime/logs/audit.log",
],

For other logging options see Yii's log target configuration.