定制 teraone/laravel-newrelic-logger 二次开发

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

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

teraone/laravel-newrelic-logger

最新稳定版本:v10.0.2

Composer 安装命令:

composer require teraone/laravel-newrelic-logger

包简介

README 文档

README

This Package adds a Log Driver that formats the logs so the new relic infrastructure agent can parse them properly.

Installation

You can install the package via composer.

For Laravel 10:

composer require teraone/laravel-newrelic-logger:"10.*"

For Laravel 9:

composer require teraone/laravel-newrelic-logger:"9.*"

Usage

Just add a Log Channel with the driver "newrelic" to the logging.php config file:

'newrelic' => [
    'driver' => 'newrelic'
]

There you can configure what else should be included in the logs:

'newrelic' => [
    'driver' => 'newrelic',
    
    'additional_info' => [
        'env' => env('APP_ENV'),
        'hostname' => gethostname()
    ]
]

Then you can set the log channel in the .env file:

LOG_CHANNEL=newrelic

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-23