Add logging context to database logs
authorBryan Davis <bd808@wikimedia.org>
Mon, 23 Jun 2014 22:25:55 +0000 (16:25 -0600)
committerLegoktm <legoktm.wikipedia@gmail.com>
Wed, 19 Nov 2014 17:59:55 +0000 (17:59 +0000)
commit2792ea9783dfe01a2a7285a073608c2eeea2d958
tree535c485f413b58d442d422d5042c36919bf0471d
parent71b56ffff4fbef2360ff02ed8a0fd1ee61585fd8
Add logging context to database logs

* Add optional $context parameter to wfDebug, wfDebugLog, wfLogDBError
  and wfErrorLog that will be passed to MWLogger.
* Add support for PSR-3 style log message parameter interpolation in
  MWLoggerLegacyLogger.
* Add context information to wfLogDBError calls made from DatabaseBase,
  DatabaseMysqlBase and LoadBalancer instances.
* Deprecate wfDebugTimer() which now appears to be unused.

Change-Id: Ic90d593d00a2b0b5b80ed205908cbe624042603c
includes/GlobalFunctions.php
includes/db/Database.php
includes/db/DatabaseMysqlBase.php
includes/db/LoadBalancer.php
includes/debug/logger/legacy/Logger.php
tests/phpunit/includes/debug/logging/legacy/LoggerTest.php [new file with mode: 0644]