Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/worker/src/Monolog/Handler
File: NullHandler.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
* Blackhole
[12] Fix | Delete
*
[13] Fix | Delete
* Any record it can handle will be thrown away. This can be used
[14] Fix | Delete
* to put on top of an existing stack to override it temporarily.
[15] Fix | Delete
*
[16] Fix | Delete
* @author Jordi Boggiano <j.boggiano@seld.be>
[17] Fix | Delete
*/
[18] Fix | Delete
class Monolog_Handler_NullHandler extends Monolog_Handler_AbstractHandler
[19] Fix | Delete
{
[20] Fix | Delete
/**
[21] Fix | Delete
* @param integer $level The minimum logging level at which this handler will be triggered
[22] Fix | Delete
*/
[23] Fix | Delete
public function __construct($level = Monolog_Logger::DEBUG)
[24] Fix | Delete
{
[25] Fix | Delete
parent::__construct($level, false);
[26] Fix | Delete
}
[27] Fix | Delete
[28] Fix | Delete
/**
[29] Fix | Delete
* {@inheritdoc}
[30] Fix | Delete
*/
[31] Fix | Delete
public function handle(array $record)
[32] Fix | Delete
{
[33] Fix | Delete
if ($record['level'] < $this->level) {
[34] Fix | Delete
return false;
[35] Fix | Delete
}
[36] Fix | Delete
[37] Fix | Delete
return true;
[38] Fix | Delete
}
[39] Fix | Delete
}
[40] Fix | Delete
[41] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function