From d62f6391f86cb0897a31613f6a56379c180a4b78 Mon Sep 17 00:00:00 2001 From: Bryan Davis Date: Tue, 13 Jan 2015 18:34:36 -0700 Subject: [PATCH] Provide a backwards compatibility shim for MWLogger MWLogger was renamed MWLoggerFactory and reduced to a static utility class in Ie474676. Reintroduce an MWLogger that proxies the public static methods of MWLoggerFactory to ease the transition of users who have implemented $wgMWLoggerDefaultSpi configurations that reference MWLogger. As noted in the class, this is a temporary bandaid that should be ripped off before 1.25 becomes an official release. Change-Id: Iaccb78a510c60aab2ff20a9aa7c0869699657388 --- autoload.php | 1 + includes/debug/logger/Logger.php | 72 ++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 includes/debug/logger/Logger.php diff --git a/autoload.php b/autoload.php index c035439520..11b5266458 100644 --- a/autoload.php +++ b/autoload.php @@ -689,6 +689,7 @@ $wgAutoloadLocalClasses = array( 'MWFunction' => __DIR__ . '/includes/utils/MWFunction.php', 'MWHookException' => __DIR__ . '/includes/Hooks.php', 'MWHttpRequest' => __DIR__ . '/includes/HttpFunctions.php', + 'MWLogger' => __DIR__ . '/includes/debug/logger/Logger.php', 'MWLoggerFactory' => __DIR__ . '/includes/debug/logger/Factory.php', 'MWLoggerLegacyLogger' => __DIR__ . '/includes/debug/logger/legacy/Logger.php', 'MWLoggerLegacySpi' => __DIR__ . '/includes/debug/logger/legacy/Spi.php', diff --git a/includes/debug/logger/Logger.php b/includes/debug/logger/Logger.php new file mode 100644 index 0000000000..27cf0cd073 --- /dev/null +++ b/includes/debug/logger/Logger.php @@ -0,0 +1,72 @@ +