jaleeldgk/laravel-access-logs
最新稳定版本:v1.1.0
Composer 安装命令:
composer require jaleeldgk/laravel-access-logs
包简介
A Laravel package for logging user requests, best way to log all requests for debugging purpose.
README 文档
README
A Laravel package for logging user activities and errors.
Installation
Install via composer:
composer require jaleeldgk/laravel-access-logs
Publishing files
Install via composer:
php artisan vendor:publish --provider="Jaleeldgk\LaravelAccessLogs\LaravelAccessLogsServiceProvider" --tag="config" php artisan migrate
Usage
You can log user activity by calling the LogHelper::createLog() method from anywhere in your application:
use Jaleeldgk\LaravelAccessLogs\Helpers\LogHelper;
LogHelper::createLog()
Configuration
You can customize the logging behavior by editing the config/laravel-access-logs.php file:
return [
'log_user_id' => true,
'log_ip' => true,
'log_user_agent' => true,
'log_params' => true,
'log_error_message' => true,
'log_error_trace' => true,
'log_referral' => true,
'log_feedback' => true,
];
Author
Jaleel Ahmad Email: jaleel.ds20@gmail.com GitHub: github.com/jaleeldgk
License
This package is open-sourced software licensed under the MIT license.
Test the Package
Ensure that the package is working correctly by running the tests:
./vendor/bin/phpunit
统计信息
- 总下载量: 87
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-06-19