定制 amazeeio/lagoon-logs 二次开发

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

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

amazeeio/lagoon-logs

最新稳定版本:v0.0.5

Composer 安装命令:

composer require amazeeio/lagoon-logs

包简介

Zero config logging module for Laravel and Lagoon

README 文档

README

Monolog channel and formatter for Laravel logging into Lagoon.

Basic Usage

Installing this package makes the channel "LagoonLogs" available in your logging config.

You can install the package by simply running composer require amazeeio/lagoon-logs - the package should be installed and autodiscovered by Laravel.

It's important to note that this is essentially a wrapper around a Monolog Logger with a specifically set UDP SocketHandler and LogstashFormatter - therefore, it really only makes sense to use this when deployed to a Lagoon instance.

In a vanilla Laravel 6 installation, this is most easily done by setting the environment variable LOG_CHANNEL to LagoonLogs.

If you need more control over your logging stack, you can simply add LagoonLogs in the appropriate places (such as a stack) in your ./config/logging.php file. See the Laravel 6 docs for more on customizing logging.

统计信息

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

GitHub 信息

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

其他信息

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