infancyit/log-rhythm 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

infancyit/log-rhythm

Composer 安装命令:

composer require infancyit/log-rhythm

包简介

A Custom Monolog Library for Laravel-MySQL.

README 文档

README

A tool for storing log information in MySQL DB with some necessary information.

Information that stored by this package:

  • User ID
  • User IP
  • User Input (Optional)
  • URL
  • HTTP Method
  • Log Level
  • Log Message
  • Stack Trace (Optional)
  • Request Referrer/Origin

Contents

Installation

  1. To install LogRhythm, run the following command:

    composer require infancyit/log-rhythm
  2. For Laravel version > 5.5 'ServiceProvider' will be automatically added.

  3. Run the command below to load all configuration file:

    php artisan vendor:publish --provider="InfancyIt\LogRhythm\LogRhythmServiceProvider"
  4. After publishing update your configuration to choose this package for logging. To change the logging channel to LogRhythm add logrhythm in the channels array on config/logging.php:

    protected $channels = [
            ... ... ... ... ...
            ... ... ... ... ...
         'logrhythm' => [
             'driver' => 'custom',
             'via' => \InfancyIt\LogRhythm\LogRhythmChannel::class,
         ],
      
        ];
  5. Run the command below to migrate database table:

    php artisan migrate
  6. Update your .env ( If you cache your env then clear cache to load new settings by php artisan config:cache):

    LOG_CHANNEL=logrhythm
  7. You can control the logging information by updating config/logrhythm.php file.

License

LogRhythm is free software distributed under the terms of the MIT license.

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-11-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固