2017 © Pedro Peláez
 

library log4php-graylog2

Log4Php to Graylog2 Connector

image

rurri/log4php-graylog2

Log4Php to Graylog2 Connector

  • Tuesday, June 18, 2013
  • by rurri
  • Repository
  • 1 Watchers
  • 1 Stars
  • 2,631 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 0 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

log4php-graylog2

Forked from https://github.com/d-ulyanov/log4php-graylog2. MIT License, (*1)

Enhancements / Fixes from forked version:, (*2)

-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, (*3)


Using composer, adds the ability for 2 new appenders: LoggerAppenderAMQP and LoggerAppenderGraylog2., (*4)

You can pass log messages to Graylog2 or AMQP (RabbitMQ for ex.) using it., (*5)

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., (*6)

If you would like to pass messages in GELF format, use special layout: LoggerLayoutGelf, (*7)


Usage:, (*8)

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

The Versions

18/06 2013

dev-master

9999999-dev http://github.com/rurri/log4php-graylog2

Log4Php to Graylog2 Connector

  Sources   Download

MIT

The Requires

 

log4php graylog2

18/06 2013

0.0.5

0.0.5.0 http://github.com/rurri/log4php-graylog2

Log4Php to Graylog2 Connector

  Sources   Download

MIT

The Requires

 

log4php graylog2