MediaWiki
REL1_41
BufferHandler.php
Go to the documentation of this file.
1
<?php
21
namespace
MediaWiki\Logger\Monolog
;
22
23
use
DeferredUpdates
;
24
use Monolog\Handler\BufferHandler as BaseBufferHandler;
25
40
class
BufferHandler
extends
BaseBufferHandler {
44
public
function
handle
( array $record ): bool {
45
if
( !$this->initialized ) {
46
DeferredUpdates::addCallableUpdate( [ $this,
'close'
] );
47
$this->initialized =
true
;
48
}
49
return
parent::handle( $record );
50
}
51
}
if
if(!defined('MW_SETUP_CALLBACK'))
Definition
WebStart.php:88
DeferredUpdates
Defer callable updates to run later in the PHP process.
Definition
DeferredUpdates.php:93
MediaWiki\Logger\Monolog\BufferHandler
Helper class for the index.php entry point.
Definition
BufferHandler.php:40
MediaWiki\Logger\Monolog\BufferHandler\handle
handle(array $record)
Definition
BufferHandler.php:44
MediaWiki\Logger\Monolog
Definition
BufferHandler.php:21
includes
debug
logger
monolog
BufferHandler.php
Generated on Wed Nov 27 2024 07:23:07 for MediaWiki by
1.10.0