定制 jaleeldgk/laravel-access-logs 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-19