From: Bryan Davis Date: Wed, 14 Jan 2015 01:34:36 +0000 (-0700) Subject: Provide a backwards compatibility shim for MWLogger X-Git-Tag: 1.31.0-rc.0~12631 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22statistiques_visites%22%2C%22%22%29%20.%20%22?a=commitdiff_plain;h=d62f6391f86cb0897a31613f6a56379c180a4b78;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 @@ +