beberlei / loggly-bundle
为 Symfony2 扩展 Monolog 支持的 Loggly 组件包
v0.0.1
2012-07-07 09:39 UTC
Requires
This package is auto-updated.
Last update: 2024-09-12 03:25:54 UTC
README
Bundle is not maintained anymore, but mostly works because of its simplicity.
Loggly 处理器,作为 Symfony 组件包,用于 Monolog。
此组件包灵感来源于 Monologgly
安装
依赖项
[WhitewashingLogglyBundle]
git=https://github.com/beberlei/WhitewashingLogglyBundle.git
target=/bundles/Whitewashing/Bundle/LogglyBundle
内核
$bundles = array(
//..
new Whitewashing\Bundle\LogglyBundle\WhitewashingLogglyBundle(),
);
自动加载
$loader->registerNamespaces(array(
//..
'Whitewashing' => __DIR__.'/../vendor/bundles',
));
配置
配置 Monolog
monolog:
handlers:
main:
type: fingers_crossed
action_level: error
handler: loggly
loggly:
type: service
id: whitewashing_loggly.monolog_handler
配置 Loggly
whitewashing_loggly:
# Loggly input key
key: abcdefg
# Loggly API host
host: logs.loggly.com
# Loggly API port (443 for HTTPS, 80 for HTTP)
port: 443
# Level to be logged (defaults to DEBUG)
level: DEBUG
bubble: true