atans/yii2-actionlog
Composer 安装命令:
composer require atans/yii2-actionlog
包简介
Yii2 action log extension
关键字:
README 文档
README
An action log extension for yii2
Installation
1.Download
The preferred way to install this extension is through composer.
Either run
composer require atans/yii2-actionlog
or add
"atans/yii2-actionlog": "*"
to the require section of your composer.json file.
2.Update database schema
$ php yii migrate/up --migrationPath=@vendor/atans/yii2-actionlog/migrations
Usage
<?php use atans\actionlog\models\ActionLog; ActionLog::error('Some error message'); ActionLog::info('Some info message'); ActionLog::warning('Some warning message'); ActionLog::success('Some success message'); $data = ['success' => true, 'message' => 'Successfully']; // optional $category = 'application'; // optional ActionLog::success('Some success message', $data, $category);
Management
Visit http://path/to/yii/?r=actionlog/admin using logged in account which role is admin
You can change the role at @vendor/atans/yii2-actionlog/Module.php
统计信息
- 总下载量: 119
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-01-06