monolog: add MwlogHandler
authorFilippo Giunchedi <fgiunchedi@wikimedia.org>
Thu, 21 Mar 2019 14:42:19 +0000 (15:42 +0100)
committerBryanDavis <bdavis@wikimedia.org>
Tue, 2 Apr 2019 04:57:04 +0000 (04:57 +0000)
commite783e152a2125d440ca56e119d380064f15ddf37
tree7ca7f8c8316ccb0874e105098469f41345f53089
parentf012b1d4a22190648ecd76061c94ce0c0a7519c6
monolog: add MwlogHandler

Introduce a new handler, similar to SyslogHandler, that will be used to
replace udp2log. The main feature of the handler is being able to vary
the 'application name' with each record's channel. This way the channel
can be reconstructed later, e.g. when writing to plaintext files.

See also an overview of the plan here:
https://phabricator.wikimedia.org/T205856#4957430

Bug: T126989
Change-Id: I0c040825b31cd70f197dc8c1d406a103dc0ed1d1
autoload.php
includes/debug/logger/monolog/MwlogHandler.php [new file with mode: 0644]