Page MenuHomePhabricator

Create a minimal backport of PSR-3 logging to MediaWiki 1.23 LTS
Closed, ResolvedPublic

Description

PSR-3 logging did not land in MediaWiki until 1.25. Backports to the 1.23 LTS release branch will become more difficult as more code is converted in MediaWiki core and extensions to use the PSR-3 logging facilities. Creation of a minimal PSR-3 compatibility layer in 1.23 will make backports easier. This layer should be the thinnest PSR-3 shim possible.

Event Timeline

bd808 raised the priority of this task from to Medium.
bd808 updated the task description. (Show Details)
bd808 added a project: User-bd808.
bd808 added a subscriber: bd808.

The patch must provide:

  • MediaWiki\Logger\LoggerFactory::getInstance()
  • Psr\Log\LoggerInterface

The Psr\Log\LoggerInterface instances returned from MediaWiki\Logger\LoggerFactory::getInstance() should delegate all of the PSR-3 log level messages to wfDebugLog().

Change 203779 had a related patch set uploaded (by BryanDavis):
Minimal PSR-3 compatible logger layer

https://gerrit.wikimedia.org/r/203779

Change 203779 merged by jenkins-bot:
Minimal PSR-3 compatible logger layer

https://gerrit.wikimedia.org/r/203779

Change 237549 had a related patch set uploaded (by Gergő Tisza):
Minimal PSR-3 compatible logger layer

https://gerrit.wikimedia.org/r/237549

Change 237549 merged by jenkins-bot:
Minimal PSR-3 compatible logger layer

https://gerrit.wikimedia.org/r/237549