attlaz/attlaz-monolog 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

attlaz/attlaz-monolog

最新稳定版本:2.2.1

Composer 安装命令:

composer require attlaz/attlaz-monolog

包简介

Attlaz integration for Monolog

README 文档

README

This package allows you to integrate Attlaz into Monolog.

Installation

Install the latest version with

$ composer require attlaz/attlaz-monolog

Basic Usage

<?php

use Monolog\Logger;
use \Attlaz\Client;
use \Attlaz\AttlazMonolog\Handler\AttlazHandler;

$attlazClient = new Client('<your-token>', '<your-token>');

$attlazHandler = new AttlazHandler($client, new LogStreamId('Vt9HtWRee'), Level::Info);

/** @var $logger Monolog\Logger */
$logger->pushHandler($attlazHandler);

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

About

Requirements

  • Attlaz Monolog ^2.0 works with PHP 8.1 and above
  • Attlaz Monolog ^1.0 works with PHP 7.2 and above
  • Attlaz Monolog ^0.0 works with PHP 5.3 up to 8.1 (No longer maintained)

Documentation

统计信息

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

GitHub 信息

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

其他信息

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