elcweb / monolog-fluentd-bundle
此包已被废弃且不再维护。未建议替代包。
Symfony2 扩展包,让 Monolog 支持 Fluentd
v0.0.1
2015-08-27 14:22 UTC
Requires
- fluent/logger: 0.3.*
- symfony/monolog-bundle: *
This package is auto-updated.
Last update: 2021-09-07 18:57:25 UTC
README
安装
步骤 1:使用 composer 下载
{ "require": { "elcweb/monolog-fluentd-bundle": "0.0.*" } }
现在运行以下命令告诉 composer 下载此扩展包:
$ php composer.phar update elcweb/monolog-fluentd-bundle
步骤 2:启用扩展包
在内核中启用扩展包
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Elcweb\Monolog\ElcwebMonologFluentdBundle(), ); }
步骤 3:配置
config.yml
monolog:
handlers:
fluentd:
type: service
id: monolog_fluentd.monolog_handler
elcweb_monolog_fluentd:
host: %monolog_fluentd_host%
port: %monolog_fluentd_port%
env: %kernel.environment%
tag: %app_name%
许可协议
此扩展包遵循 MIT 许可协议。请参阅扩展包中的完整许可协议。
Resources/meta/LICENSE
报告问题或功能请求
问题和功能请求在 Github 问题跟踪器 中进行跟踪。
在报告错误时,最好在基于 Symfony 标准版 的基本项目中重现问题,这样扩展包的开发者可以通过简单地克隆项目并遵循一些步骤来重现问题。