rauwekost / monolog-aws-bundle
此包已弃用且不再维护。未建议替换包。
用于记录到亚马逊云服务的捆绑包
0.12
2014-11-05 15:25 UTC
Requires
- php: >=5.4
- aws/aws-sdk-php: 2.6.*@dev
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