MediaWiki master
BufferHandler.php
Go to the documentation of this file.
1<?php
8
10use Monolog\Handler\BufferHandler as BaseBufferHandler;
11use Monolog\LogRecord;
12
27class BufferHandler extends BaseBufferHandler {
31 public function handle( array|LogRecord $record ): bool {
32 if ( !$this->initialized ) {
33 DeferredUpdates::addCallableUpdate( $this->close( ... ) );
34 $this->initialized = true;
35 }
36 return parent::handle( $record );
37 }
38}
if(!defined('MW_SETUP_CALLBACK'))
Definition WebStart.php:71
Defer callable updates to run later in the PHP process.
Helper class for the index.php entry point.