rurri/log4php-graylog2
Composer 安装命令:
composer require rurri/log4php-graylog2
包简介
Log4Php to Graylog2 Connector
README 文档
README
Forked from https://github.com/d-ulyanov/log4php-graylog2. MIT License
Enhancements / Fixes from forked version:
-Converts project to a composer based project: no longer requiring manually copying files into log4php -Fixes the the issue of MDC_ being prepended to MDC key/values -Allows for file / line to be overridden enabling custom php error handling scripts to log the original file/line of the actual error. -Fixes timestamp not being logged correctly -Logs the logger name separate from the facility -Allows facility name to be overridden -Increases "Short Message" to 255
Using composer, adds the ability for 2 new appenders: LoggerAppenderAMQP and LoggerAppenderGraylog2.
You can pass log messages to Graylog2 or AMQP (RabbitMQ for ex.) using it.
Appender LoggerAppenderGraylog2 can pass messages directly to Graylog2 server.
Appender LoggerAppenderAMQP can pass messages to AMQP Server. In this case you can set up yours graylog2 to recieving messages from AMQP.
If you would like to pass messages in GELF format, use special layout: LoggerLayoutGelf
Usage:
- Add this project to your composer file
- Set up your log4php config file (see exampleConfig.xml):
rurri/log4php-graylog2 适用场景与选型建议
rurri/log4php-graylog2 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8.02k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2013 年 06 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「log4php」 「graylog2」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 rurri/log4php-graylog2 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 rurri/log4php-graylog2 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 rurri/log4php-graylog2 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Stackify logs and errors for PHP
Stackify logs and errors for Monolog
Log4php appenders and layouts for compatibility with graylog2
log4php for n2n
Graylog2 log route for Yii
A PHP PSR-3 compliant logger to send data to graylog2 (GELF format)
统计信息
- 总下载量: 8.02k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-06-18