定制 inpsyde/logzio-monolog 二次开发

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

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

inpsyde/logzio-monolog

最新稳定版本:2.1

Composer 安装命令:

composer require inpsyde/logzio-monolog

包简介

Logz.io integration for Monolog

README 文档

README

Latest Stable Version Project Status Build Status License

This package allows you to integrate Logz.io into Monolog.

Monolog support

Monolog 1, 2 and 3 will be supported in different versions:

Monolog Version Logzio-Monolog Branch
1.0 - 1.25.2 0.x
>= 2.0 1.x
>= 3.0 2.x
  • Monolog 1.x will be supported in this package in all versions of 0.x
  • Monolog 2.x will be supported in this package in all versions of 1.x

Installation

Install the latest version with

$ composer require inpsyde/logzio-monolog

Basic Usage

<?php

use Monolog\Logger;
use Inpsyde\LogzIoMonolog\Handler\LogzIoHandler;

// create a log channel
$log = new Logger('name');
$log->pushHandler(new LogzIoHandler('<your-token>'));

// add records to the log
$log->warning('Foo');
$log->error('Bar');

统计信息

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

GitHub 信息

  • Stars: 18
  • Watchers: 3
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04