定制 keldorde/laravel-api-logger 二次开发

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

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

keldorde/laravel-api-logger

最新稳定版本:1.0.5

Composer 安装命令:

composer require keldorde/laravel-api-logger

包简介

An API logger channel that can be used to send Log messages to an API endpoint.

README 文档

README

An API logger channel that can be used to send Log messages to an API endpoint.

Usage

  • Export the API logger configuration file
    php artisan vendor:publish --provider="KeldorDE\ApiLogger\ApiLoggerServiceProvider" --tag="config"

  • Add the following array element to the channels array in config/logging.php

    'api' => [
        'driver' => 'custom',
        'via' => \KeldorDE\ApiLogger\Logger\ApiLogChannel::class,
    ],
    
  • Configure the environment variables
    LOG_CHANNEL=stack
    LOG_STACK=api
    LOG_API_ENDPOINT=https://api.example.com/logs/create
    LOG_API_TOKEN=some-api-token
    LOG_API_USER_AGENT=Some/UserAgent

Environment variables

See the config/api-logger.php file for detailed descriptions.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-12-18