lelivrescolaire/monolog-extra-bundle

自定义 symfony 2 应用中的 monolog 使用。

dev-master 2017-01-29 16:01 UTC

This package is not auto-updated.

Last update: 2020-01-07 15:20:02 UTC


README

LeLivreScolaire

Monolog Extra Bundle Build Status Coverage Status

通过一些缺失的工具扩展你的 Monolog 栈。

安装

$ composer require "lelivrescolaire/monolog-extra-bundle:dev-master"

AppKernel

public function registerBundles()
{
    $bundles = array(
        new LLS\Bundle\MonologExtraBundle\LLSMonologExtraBundle(),
    );
}

配置参考

lls_monolog_extra:
    handlers:           # Create custom handlers
        sqs_handler:
            type: sqs       # Handler using Queue from SQSBundle
            queue: myQueue  # Queue identifier
            level: INFO     # Log level (int or label)
            bubble: true    # Whether or not execute next handlers

monolog:
    handlers:
        sqs:
            type:     service
            id:       lls_monolog_extra.handlers.sqs_handler  # Auto generated service
            priority: 0

阅读更多文档 这里

贡献

请随时向我们发送 Pull RequestsIssues,并提供您的修复和功能。

运行测试

单元测试

$ ./bin/atoum

编码规范

$ ./bin/coke