Update MWLoggerMonologHandler for Monolog 1.12.0
authorBryan Davis <bd808@wikimedia.org>
Sat, 14 Feb 2015 01:08:21 +0000 (18:08 -0700)
committerBryan Davis <bd808@wikimedia.org>
Sat, 14 Feb 2015 01:12:30 +0000 (18:12 -0700)
commit8382b5570e890a46397da496bf98154f93215ee2
treeabe6bbd8e9cdc618a44bf6288a2a7991db81784c
parentcb8d6397f9ad2182e30cd9fd2e7a34e22605e624
Update MWLoggerMonologHandler for Monolog 1.12.0

Monolog 1.12.0 "fixed" Handler::isHandling() so that instead of a full
log record it is only passed an array with the log event's level.
MWLoggerMonologHandler was relying on a full record to allow inspecting
the channel name and looking for a 'private' flag in the context
information.

Update MWLoggerMonologHandler to do legacy processing checks in
Handler::write() where the full log event is present for inspection.

Bug: T89313
Change-Id: Ia878c2cb6bff47d6b35ff38ba3b7ac2ea5556565
includes/debug/logger/monolog/Handler.php