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.
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Minimal PSR-3 compatible logger layer | mediawiki/core | REL1_24 | +517 -0 | |
Minimal PSR-3 compatible logger layer | mediawiki/core | REL1_23 | +514 -1 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | bd808 | T91653 Create a minimal backport of PSR-3 logging to MediaWiki 1.23 LTS | |||
Resolved | bd808 | T93406 Move MWLogger* classes to PHP namespaces rather than using faux namespaces in the class names |
Event Timeline
Comment Actions
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().
Comment Actions
Change 203779 had a related patch set uploaded (by BryanDavis):
Minimal PSR-3 compatible logger layer
Comment Actions
Change 237549 had a related patch set uploaded (by Gergő Tisza):
Minimal PSR-3 compatible logger layer