* @copyright © 2013 Bryan Davis and Wikimedia Foundation. * @see MWLoggerLegacyLogger */ class MWLoggerMonologLegacyFormatter extends \Monolog\Formatter\NormalizerFormatter { public function __construct() { parent::__construct( 'c' ); } public function format( array $record ) { $normalized = parent::format( $record ); return MWLoggerLegacyLogger::format( $normalized['channel'], $normalized['message'], $normalized ); } }