MediaWiki 1.39.10
|
Wraps another spi to capture all logs generated. More...
Public Member Functions | |
__construct (Spi $inner) | |
capture ( $log) | |
getInnerSpi () | |
getLogger ( $channel) | |
getLogs () | |
setLoggerForTest ( $channel, LoggerInterface $logger=null) | |
Wraps another spi to capture all logs generated.
This can be used, for example, to collect all logs generated during a unit test and report them when the test fails.
Definition at line 13 of file LogCapturingSpi.php.
MediaWiki\Logger\LogCapturingSpi::__construct | ( | Spi | $inner | ) |
Definition at line 21 of file LogCapturingSpi.php.
MediaWiki\Logger\LogCapturingSpi::capture | ( | $log | ) |
array | $log |
Definition at line 46 of file LogCapturingSpi.php.
MediaWiki\Logger\LogCapturingSpi::getInnerSpi | ( | ) |
Definition at line 86 of file LogCapturingSpi.php.
MediaWiki\Logger\LogCapturingSpi::getLogger | ( | $channel | ) |
string | $channel |
Implements MediaWiki\Logger\Spi.
Definition at line 36 of file LogCapturingSpi.php.
MediaWiki\Logger\LogCapturingSpi::getLogs | ( | ) |
Definition at line 28 of file LogCapturingSpi.php.
MediaWiki\Logger\LogCapturingSpi::setLoggerForTest | ( | $channel, | |
LoggerInterface | $logger = null ) |
string | $channel | |
LoggerInterface | null | $logger |
Definition at line 96 of file LogCapturingSpi.php.