PHPackages                             rurri/log4php-graylog2 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. rurri/log4php-graylog2

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

rurri/log4php-graylog2
======================

Log4Php to Graylog2 Connector

0.0.5(12y ago)18.0kMITPHP

Since Jun 18Pushed 12y ago1 watchersCompare

[ Source](https://github.com/rurri/log4php-graylog2)[ Packagist](https://packagist.org/packages/rurri/log4php-graylog2)[ Docs](http://github.com/rurri/log4php-graylog2)[ RSS](/packages/rurri-log4php-graylog2/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

log4php-graylog2
================

[](#log4php-graylog2)

Forked from . 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:

1. Add this project to your composer file
2. Set up your log4php config file (see exampleConfig.xml):

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4717d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b4cbb092e466388e79a96960bd59eb5cecdc37ce7f17719b368fc16bd28a5df?d=identicon)[rurri](/maintainers/rurri)

---

Top Contributors

[![d-ulyanov](https://avatars.githubusercontent.com/u/3064640?v=4)](https://github.com/d-ulyanov "d-ulyanov (2 commits)")

---

Tags

graylog2log4php

### Embed Badge

![Health badge](/badges/rurri-log4php-graylog2/health.svg)

```
[![Health](https://phpackages.com/badges/rurri-log4php-graylog2/health.svg)](https://phpackages.com/packages/rurri-log4php-graylog2)
```

###  Alternatives

[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[hedii/laravel-gelf-logger

A Laravel package to send logs to a gelf compatible backend like graylog

1333.4M10](/packages/hedii-laravel-gelf-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[codemix/yii2-streamlog

A Yii 2 log target for streams in URL format

531.4M6](/packages/codemix-yii2-streamlog)[dulyanov/log4php-graylog2

Log4php appenders and layouts for compatibility with graylog2

1168.0k](/packages/dulyanov-log4php-graylog2)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
