otobank/monolog-fluent-handler

1.0.1 2015-06-10 09:20 UTC

This package is auto-updated.

Last update: 2024-08-29 04:13:26 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License Build Status Coverage Status Dependency Status

Fluent 的 Monolog 处理器。

用法

<?php

use Monolog\Logger;
use Otobank\Monolog\Handler\FluentHandler;

$logger = new Logger('name');
$logger->pushHandler(new FluentHandler());

$logger->alert('Something wrong.');

Symfony

示例) app/config/config.yml

services:
    acme.monolog.fluent_handler:
        class: Otobank\Monolog\Handler\FluentHandler
        arguments:
            - "%acme.fluent.uri%"

monolog:
    handlers:
        fluent:
            type: service
            id: acme.monolog.fluent_handler
            level: debug

安装

composer require otobank/monolog-fluent-handler

作者

SATO Keisuke - ksato@otobank.co.jp - https://github.com/riaf

许可证

MIT 许可证下授权 - 有关详细信息,请参阅 LICENSE 文件

OTOBANK Inc.