Add Monolog handler for syslog UDP transport
authorBryan Davis <bd808@wikimedia.org>
Tue, 10 Feb 2015 05:38:26 +0000 (22:38 -0700)
committerBryan Davis <bd808@wikimedia.org>
Tue, 10 Feb 2015 05:38:26 +0000 (22:38 -0700)
commitf058574fcde08bf92ab8f1ba3a70c16ad1fb163c
tree516a10971973342e25bbd2f2045e7f7a383d4cb5
parent1cf126e626c70bc67a974e34285d4e186d63f79c
Add Monolog handler for syslog UDP transport

The stock Monolog\Handler\SyslogUdpHandler only works with a specifically
tailored Formatter class and it's output cannot be fed directly into
Logstash's syslog input. This handler implements RFC 3164 in a way that
can be used with any Formatter and parsed directly by Logstash.

Bug: T88870
Change-Id: Ib098d5cb8fe9643742360bf51b54fc0e27996c0f
autoload.php
includes/debug/logger/monolog/SyslogHandler.php [new file with mode: 0644]