Allow MWLoggerMonologHandler to take prefix from channel
authorBryan Davis <bd808@wikimedia.org>
Sun, 22 Mar 2015 22:12:25 +0000 (16:12 -0600)
committerBryan Davis <bd808@wikimedia.org>
Sun, 22 Mar 2015 22:12:25 +0000 (16:12 -0600)
commitf16f8fe9c59825692b9bae8b842ed2f93fc723cf
tree4b8579bded3e64f56d232c0834fe25a3cbbc5542
parent41b86bea62d181c69763e4d13918b0329a55e198
Allow MWLoggerMonologHandler to take prefix from channel

Make MWLoggerMonologHandler replace a prefix of "{channel}" with the log
event channel when formatting an event for a udp2log stream. This allows
a simpler configuration for a typical Monolog configuration where
a separate file is desired for each logging channel that is emitted to
udp2log. One handler can be shared by multiple channels.

Change-Id: Ie2b24ba02b281b8d8cf2ad58d28874c710e1e2e5
includes/debug/logger/monolog/Handler.php