dframe/activitylog
最新稳定版本:v0.2.0
Composer 安装命令:
composer require dframe/activitylog
包简介
user, system activity log
README 文档
README
Documentation available at https://dframeframework.com
Installation Composer
$ composer require dframe/activitylog
PSR-3 Adapter
use Dframe\ActivityLog\Activity; use Dframe\ActivityLog\Demo\Drivers\PSR3FileLog; use Dframe\ActivityLog\Helper\Psr3Adapter; use Psr\Log\LogLevel; require_once __DIR__ . '/../../vendor/autoload.php'; $log = new Activity(new PSR3FileLog()); $logger = new Psr3Adapter($log, 'System', \Dframe\ActivityLog\Entity\PSR3::class); $logger->log(LogLevel::ERROR, 'This is {error}', ['error' => 'error #500']);
Standard Usage
use Dframe\ActivityLog\Activity; use Dframe\ActivityLog\Demo\Drivers\FileLog; require_once __DIR__ . '/../../vendor/autoload.php'; $log = (new Activity(new FileLog())); $log->log('Hello Word!')->entity(\Dframe\ActivityLog\Demo\Entity\Action::class)->push();
Display Logs
$log->logs();
统计信息
- 总下载量: 411
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-06-12