The value should be an array suitable for use with ObjectFactory::getObjectFromSpec()
. The created object is expected to implement the MWLoggerSpi
interface. See ObjectFactory
for additional details.
NullSpi
creates MWLogger
instances that will discard all logging events.
$wgMWLoggerDefaultSpi = [ 'class' => '\\MediaWiki\\Logger\\NullSpi', ];
LegacySpi
(default) creates LegacyLogger
instances which mimic the historic implementation of MediaWiki's wfErrorLog
logging implementation.
$wgMWLoggerDefaultSpi = [ 'class' => '\\MediaWiki\\Logger\\LegacySpi', ];
MWLoggerMonologSpi
creates loggers implemented by Monolog. See Manual:MWLoggerMonologSpi for configuration settings.
$wgMWLoggerDefaultSpi = [ 'class' => '\\MediaWiki\\Logger\\MonologSpi', 'args' => ... ];
≥ 1.39
$wgMWLoggerDefaultSpi = [ 'class' => 'MediaWiki\\Logger\\LegacySpi', ]MediaWiki versions:
1.31 – 1.38
$wgMWLoggerDefaultSpi = [ 'class' => \MediaWiki\Logger\LegacySpi::class, ]MediaWiki versions:
1.25 – 1.30
$wgMWLoggerDefaultSpi = array( 'class' => '\\MediaWiki\\Logger\\LegacySpi', )
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4