rauwekost/monolog-aws-bundle

此包已弃用且不再维护。未建议替换包。

用于记录到亚马逊云服务的捆绑包

安装: 146

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 0

开放问题: 0

类型:symfony-bundle

0.12 2014-11-05 15:25 UTC

This package is not auto-updated.

Last update: 2016-10-23 16:30:40 UTC


README

此捆绑包提供了记录到AWS的处理程序。捆绑包还将实例ID添加到日志消息的额外数组中。

安装

$ composer require rauwekost/monolog-aws-bundle

配置

配置非常直接,在 app/config/config.yml

...
rauwekost_monolog_aws:
    aws_credentials: 
        key: <your key>
        secret: <your secret>
        region: eu-west-1
        base_url <optional base_url>
    s3_handler:
        path: s3://path/to/your/file.log
        level: DEBUG
    sns_handler:
        topic: your:topic:arn
        subject: 'My message subject'
        level: DEBUG
...

配置示例 monolog

monolog:
    handlers:
        sns_handler:
            id: rauwekost_monolog_sns_handler
            channels: ['request']
            type: service
        s3_handler:
            id: rauwekost_monolog_s3_handler
            channels: ['request']
            type: service