MediaWiki  1.33.0
docs/logger.txt File Reference

Variables

MediaWiki Logger wfErrorLog and other global logging functions
 
MediaWiki Logger Monolog LegacyHandler
 
MediaWiki Logger LegacyLogger
 
MediaWiki Logger LegacySpi
 
MediaWiki Logger LoggerFactory implements a PSR[0] compatible message logging system Named Psr Log LoggerInterface instances can be obtained from the MediaWiki Logger LoggerFactory::getInstance() static method. MediaWiki\Logger\LoggerFactory expects a class implementing the MediaWiki\Logger\Spi interface to act as a factory for new Psr\Log\LoggerInterface instances. The "Spi" in MediaWiki\Logger\Spi stands for "service provider interface". An SPI is an API intended to be implemented or extended by a third party. This software design pattern is intended to enable framework extension and replaceable components. It is specifically used in the MediaWiki\Logger\LoggerFactory service to allow alternate PSR-3 logging implementations to be easily integrated with MediaWiki. The service provider interface allows the backend logging library to be implemented in multiple ways. The $wgMWLoggerDefaultSpi global provides the classname of the default MediaWiki\Logger\Spi implementation to be loaded at runtime. This can either be the name of a class implementing the MediaWiki\Logger\Spi with a zero argument const ructor or a callable that will return an MediaWiki\Logger\Spi instance. Alternately the MediaWiki\Logger\LoggerFactory MediaWiki Logger LoggerFactory
 
MediaWiki Logger MonologSpi
 
MediaWiki Logger NullSpi
 
MediaWiki Logger Spi
 
MediaWiki Logger Monolog WikiProcessor
 

Variable Documentation

◆ functions

MediaWiki Logger wfErrorLog and other global logging functions

Definition at line 54 of file logger.txt.

◆ LegacyHandler

MediaWiki Logger Monolog LegacyHandler

Definition at line 61 of file logger.txt.

◆ LegacyLogger

MediaWiki Logger LegacyLogger

◆ LegacySpi

MediaWiki Logger LegacySpi

Definition at line 53 of file logger.txt.

◆ LoggerFactory

MediaWiki Logger LoggerFactory implements a PSR [0] compatible message logging system Named Psr Log LoggerInterface instances can be obtained from the MediaWiki Logger LoggerFactory::getInstance () static method. MediaWiki\Logger\LoggerFactory expects a class implementing the MediaWiki\Logger\Spi interface to act as a factory for new Psr\Log\LoggerInterface instances. The "Spi" in MediaWiki\Logger\Spi stands for "service provider interface". An SPI is an API intended to be implemented or extended by a third party. This software design pattern is intended to enable framework extension and replaceable components. It is specifically used in the MediaWiki\Logger\LoggerFactory service to allow alternate PSR-3 logging implementations to be easily integrated with MediaWiki. The service provider interface allows the backend logging library to be implemented in multiple ways. The $wgMWLoggerDefaultSpi global provides the classname of the default MediaWiki\Logger\Spi implementation to be loaded at runtime. This can either be the name of a class implementing the MediaWiki\Logger\Spi with a zero argument const ructor or a callable that will return an MediaWiki\Logger\Spi instance. Alternately the MediaWiki\Logger\LoggerFactory MediaWiki Logger LoggerFactory
new

Definition at line 5 of file logger.txt.

◆ MonologSpi

MediaWiki Logger MonologSpi

Definition at line 58 of file logger.txt.

Referenced by MediaWiki\Logger\MonologSpiTest::testMergeConfig().

◆ NullSpi

MediaWiki Logger NullSpi

Definition at line 51 of file logger.txt.

◆ Spi

MediaWiki Logger Spi

Definition at line 49 of file logger.txt.

◆ WikiProcessor

MediaWiki Logger Monolog WikiProcessor

Definition at line 66 of file logger.txt.