承接 mintunitish/laravel-log-enhancer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

mintunitish/laravel-log-enhancer

Composer 安装命令:

composer require mintunitish/laravel-log-enhancer

包简介

Adds more data to logs for easy debugging.

README 文档

README

Latest Stable Version Total Downloads License Monthly Downloads Build Status Codacy Badge

Log Enhancer (Laravel 5.6)

Laravel's logging system helps a lot for storing data as well as while troubleshooting some hidden bugs. The data related to the exception automatically gets logged whenever something goes wrong.

Sometimes, we need more than just stack trace to debug the issue easily. The things like request URL, request input data, session data, etc. help us hunt down the exact cause quickly. That's what this plug-and-play Laravel package offers.

Requirements

  • PHP 7.1.3+
  • Laravel 5.6

Installation

  1. Install the package by running this command in your terminal/cmd:
composer require mintunitish/laravel-log-enhancer
  1. Add this package's LogEnhancer class to the tap option of your log channel in config/logging.php:
'stack' => [
    'driver' => 'stack',
    'tap' => [AwesomePeople\LaravelLogEnhancer\LogEnhancer::class],
    'channels' => ['daily', 'slack'],
],

Optionally, you can import config file by running this command in your terminal/cmd:

php artisan vendor:publish --tag=laravel-log-enhancer-config

It has following configuration settings:

  • (bool) log_request_details => Set to true if you wish to log request data. (Reference)

  • (bool) log_input_data => Set to true if you wish to log user input data

  • (bool) log_request_headers => Set to true if you wish to log request headers

  • (bool) log_session_data => Set to true if you wish to log session data

  • (bool) log_memory_usage => Set to true if you wish to log memory usage. (Reference)

  • (bool) log_git_data => Set to true if you wish to log git branch and commit details. (Reference)

  • (array) ignore_input_fields => If input data is being sent, you can specify the inputs from the user that should not be logged. for example, password,cc number, etc.

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

Special Thanks to

统计信息

  • 总下载量: 120
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-07-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固