定制 vivante-health/monolog-stackdriver-handler 二次开发

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

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

vivante-health/monolog-stackdriver-handler

最新稳定版本:v1.0.1

Composer 安装命令:

composer require vivante-health/monolog-stackdriver-handler

包简介

Stackdriver Handler based on Monolog StreamHandler

README 文档

README

Monolog Handler Structured Logging [https://cloud.google.com/logging/docs/structured-logging]

This handler is GCP_PROJECT ID agnostic.

Extends Monolog\Handler\StreamHandler setting the formatter to JsonFormatter and adding severity field, while eliminating unused information.

Installation

composer require vivante-health/monolog-stackdriver-handler

Basic Usage

<?php

use VivanteHealth\MonologStackdriverHandler\StackdriverHandler;

$log = new Logger('name');
$log->pushHandler(
    new StackdriverHandler()
);

License

vivante-health/monolog-stackdriver-handler is licensed under the MIT License - see the LICENSE file for details

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 4
  • Forks: 1
  • 开发语言: PHP

其他信息

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