objectcache: Use Psr\Log\LoggerInterface instead of wfDebug
authorKunal Mehta <legoktm@gmail.com>
Wed, 19 Nov 2014 06:42:33 +0000 (22:42 -0800)
committerBryanDavis <bdavis@wikimedia.org>
Fri, 30 Jan 2015 22:03:23 +0000 (22:03 +0000)
commited9026377636777fefe482f2c02ac41c5a5ee410
tree1437609c46b304cbbbd89472f674e18eb37d9664
parent1ac1512db86d8d821f81c4d553da82a9e0ae7ad0
objectcache: Use Psr\Log\LoggerInterface instead of wfDebug

ObjectCache::newFromParams() will handle a 'loggroup' parameter
specially, getting an instance of \Psr\Log\LoggerInterface to
pass to the BagsOStuff.

BagOStuff implementations can use $this->logger which will be
an implementation of \Psr\Log\LoggerInterface. As this is set in
BagOStuff::__construct(), all subclasses must now call the
parent constructor.

The goal of this is to make the logging in BagOStuff non-MediaWiki
specific, in the hopes of separating it out into a separate library
in the future.

Change-Id: I8a8e278e6f028814499d8457d6d5341d03eabc7a
includes/DefaultSettings.php
includes/objectcache/BagOStuff.php
includes/objectcache/HashBagOStuff.php
includes/objectcache/MemcachedBagOStuff.php
includes/objectcache/MemcachedClient.php
includes/objectcache/MemcachedPeclBagOStuff.php
includes/objectcache/MemcachedPhpBagOStuff.php
includes/objectcache/MultiWriteBagOStuff.php
includes/objectcache/ObjectCache.php
includes/objectcache/RedisBagOStuff.php
includes/objectcache/SqlBagOStuff.php