tomatophp/tomato-user-activities
最新稳定版本:v1.0.3
Composer 安装命令:
composer create-project tomatophp/tomato-user-activities
包简介
Advanced logger to save user activities from requests
README 文档
README
Tomato User Activities
Advanced logger is a laravel package used to automatically log every request made to you laravel application. Each request is also identified by hash, which can be used in standard log to identify the request.
This package has been inspired by package https://github.com/andersao/laravel-request-logger from Anderson Andrade.
Installation
composer require tomatophp/tomato-user-activities
Configuration
All options are described in config/tomato-user-activities.php.
Using request hash in standard log file in Laravel 5.7
If you would like to have request identifier in you standard log, to match log events with request you could add to config/logging.php
'tap' => [TomatoPHP\TomatoUserActivities\LogCustomizers\HashLogCustomizer::class],
to daily channel. The resulted code should looks like
'channels' => [ ... 'daily' => [ 'driver' => 'daily', 'path' => storage_path('logs/laravel.log'), 'level' => 'debug', 'days' => 14, 'tap' => [TomatoPHP\TomatoUserActivities\LogCustomizers\HashLogCustomizer::class], ], ... ],
This log modifier can be used also in other channels, however it uses extended LineFormatter.
Support
you can join our discord server to get support TomatoPHP
Docs
you can check docs of this package on Docs
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 113
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-12-27
