Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/worker/src/Monolog/Handler
File: AbstractProcessingHandler.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/*
[2] Fix | Delete
* This file is part of the Monolog package.
[3] Fix | Delete
*
[4] Fix | Delete
* (c) Jordi Boggiano <j.boggiano@seld.be>
[5] Fix | Delete
*
[6] Fix | Delete
* For the full copyright and license information, please view the LICENSE
[7] Fix | Delete
* file that was distributed with this source code.
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
/**
[11] Fix | Delete
* Base Handler class providing the Handler structure
[12] Fix | Delete
*
[13] Fix | Delete
* Classes extending it should (in most cases) only implement write($record)
[14] Fix | Delete
*
[15] Fix | Delete
* @author Jordi Boggiano <j.boggiano@seld.be>
[16] Fix | Delete
* @author Christophe Coevoet <stof@notk.org>
[17] Fix | Delete
*/
[18] Fix | Delete
abstract class Monolog_Handler_AbstractProcessingHandler extends Monolog_Handler_AbstractHandler
[19] Fix | Delete
{
[20] Fix | Delete
/**
[21] Fix | Delete
* {@inheritdoc}
[22] Fix | Delete
*/
[23] Fix | Delete
public function handle(array $record)
[24] Fix | Delete
{
[25] Fix | Delete
if (!$this->isHandling($record)) {
[26] Fix | Delete
return false;
[27] Fix | Delete
}
[28] Fix | Delete
[29] Fix | Delete
$record = $this->processRecord($record);
[30] Fix | Delete
[31] Fix | Delete
$record['formatted'] = $this->getFormatter()->format($record);
[32] Fix | Delete
[33] Fix | Delete
$this->write($record);
[34] Fix | Delete
[35] Fix | Delete
return false === $this->bubble;
[36] Fix | Delete
}
[37] Fix | Delete
[38] Fix | Delete
/**
[39] Fix | Delete
* Writes the record down to the log of the implementing handler
[40] Fix | Delete
*
[41] Fix | Delete
* @param array $record
[42] Fix | Delete
*
[43] Fix | Delete
* @return void
[44] Fix | Delete
*/
[45] Fix | Delete
abstract protected function write(array $record);
[46] Fix | Delete
[47] Fix | Delete
/**
[48] Fix | Delete
* Processes a record.
[49] Fix | Delete
*
[50] Fix | Delete
* @param array $record
[51] Fix | Delete
*
[52] Fix | Delete
* @return array
[53] Fix | Delete
*/
[54] Fix | Delete
protected function processRecord(array $record)
[55] Fix | Delete
{
[56] Fix | Delete
if ($this->processors) {
[57] Fix | Delete
foreach ($this->processors as $processor) {
[58] Fix | Delete
$record = call_user_func($processor, $record);
[59] Fix | Delete
}
[60] Fix | Delete
}
[61] Fix | Delete
[62] Fix | Delete
return $record;
[63] Fix | Delete
}
[64] Fix | Delete
}
[65] Fix | Delete
[66] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function