mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-21 16:46:11 +02:00
Add BC for the sendHeaders property, fixes #152
This commit is contained in:
@@ -40,6 +40,21 @@ class ChromePHPHandler extends AbstractProcessingHandler
|
|||||||
|
|
||||||
protected static $sendHeaders = true;
|
protected static $sendHeaders = true;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* pointer to the static sendHeaders for BC
|
||||||
|
*/
|
||||||
|
protected $sendHeaders;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param integer $level The minimum logging level at which this handler will be triggered
|
||||||
|
* @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
|
||||||
|
*/
|
||||||
|
public function __construct($level = Logger::DEBUG, $bubble = true)
|
||||||
|
{
|
||||||
|
parent::__construct($level, $bubble);
|
||||||
|
$this->sendHeaders =& static::$sendHeaders;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
@@ -53,6 +53,21 @@ class FirePHPHandler extends AbstractProcessingHandler
|
|||||||
|
|
||||||
protected static $sendHeaders = true;
|
protected static $sendHeaders = true;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* pointer to the static sendHeaders for BC
|
||||||
|
*/
|
||||||
|
protected $sendHeaders;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param integer $level The minimum logging level at which this handler will be triggered
|
||||||
|
* @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
|
||||||
|
*/
|
||||||
|
public function __construct($level = Logger::DEBUG, $bubble = true)
|
||||||
|
{
|
||||||
|
parent::__construct($level, $bubble);
|
||||||
|
$this->sendHeaders =& static::$sendHeaders;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base header creation function used by init headers & record headers
|
* Base header creation function used by init headers & record headers
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user