承接 raysulkobir/logs-laravel 相关项目开发

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

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

raysulkobir/logs-laravel

最新稳定版本:1.0.0

Composer 安装命令:

composer require raysulkobir/logs-laravel

包简介

A basic but lovely log generator for the Laravel package

README 文档

README

A basic but lovely log generator for the Laravel package.

Requires: Laravel >= 10.0

License: MIT

Installation

Begin by installing this package through Composer. Just run following command to terminal-

composer require raysulkobir/logs-laravel

Configuration

Service Provider Registration In config/app.php, add in providers array -

   'providers' => [
          // .........................
          Raysulkobir\LogsLaravel\LogsServiceProvider::class,
   ]

Database migration

   php artisan migrate

Use from Controller

Import first the UniqueSlug facade

   use Raysulkobir\LogsLaravel\Logger\Logger;

Example

// 1st parameter is string table_name // 2nd parameter is string response // 3rd parameter is integer table_id default

// This line has been added for clarification

Logger::logDb('type', ['a', 'b', 'c'], 100);

// 1st parameter is string response

Logger::logFile('{"Envelope":{"Body":{"Fault":{"faultcode":"soap:Server","detail":{"source":{"errorcode":"protocol.http.TooBigBody"}},"faultstring":"Body buffer overflow","faultactor":{}}},"encodingStyle":"http://schemas.xmlsoap.org/soap/encoding/"}');

This logDb

Screenshot_1

This logFile

fileupload

Security

If you discover any security-related issues, please email raysulkobir97@gmail.com instead of using the issue tracker.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-23