mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 13:16:39 +02:00
Updated the ChromePHPHandler for the new version of the extension
This commit is contained in:
@@ -24,12 +24,12 @@ class ChromePHPHandler extends AbstractProcessingHandler
|
|||||||
/**
|
/**
|
||||||
* Version of the extension
|
* Version of the extension
|
||||||
*/
|
*/
|
||||||
const VERSION = '3.0';
|
const VERSION = '4.0';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Header name
|
* Header name
|
||||||
*/
|
*/
|
||||||
const HEADER_NAME = 'X-ChromePhp-Data';
|
const HEADER_NAME = 'X-ChromeLogger-Data';
|
||||||
|
|
||||||
protected static $initialized = false;
|
protected static $initialized = false;
|
||||||
|
|
||||||
|
@@ -32,7 +32,7 @@ class ChromePHPHandlerTest extends TestCase
|
|||||||
$handler->handle($this->getRecord(Logger::WARNING));
|
$handler->handle($this->getRecord(Logger::WARNING));
|
||||||
|
|
||||||
$expected = array(
|
$expected = array(
|
||||||
'X-ChromePhp-Data' => base64_encode(utf8_encode(json_encode(array(
|
'X-ChromeLogger-Data' => base64_encode(utf8_encode(json_encode(array(
|
||||||
'version' => ChromePHPHandler::VERSION,
|
'version' => ChromePHPHandler::VERSION,
|
||||||
'columns' => array('label', 'log', 'backtrace', 'type'),
|
'columns' => array('label', 'log', 'backtrace', 'type'),
|
||||||
'rows' => array(
|
'rows' => array(
|
||||||
@@ -56,7 +56,7 @@ class ChromePHPHandlerTest extends TestCase
|
|||||||
$handler->handle($this->getRecord(Logger::WARNING, str_repeat('a', 100*1024)));
|
$handler->handle($this->getRecord(Logger::WARNING, str_repeat('a', 100*1024)));
|
||||||
|
|
||||||
$expected = array(
|
$expected = array(
|
||||||
'X-ChromePhp-Data' => base64_encode(utf8_encode(json_encode(array(
|
'X-ChromeLogger-Data' => base64_encode(utf8_encode(json_encode(array(
|
||||||
'version' => ChromePHPHandler::VERSION,
|
'version' => ChromePHPHandler::VERSION,
|
||||||
'columns' => array('label', 'log', 'backtrace', 'type'),
|
'columns' => array('label', 'log', 'backtrace', 'type'),
|
||||||
'rows' => array(
|
'rows' => array(
|
||||||
@@ -99,7 +99,7 @@ class ChromePHPHandlerTest extends TestCase
|
|||||||
$handler2->handle($this->getRecord(Logger::WARNING));
|
$handler2->handle($this->getRecord(Logger::WARNING));
|
||||||
|
|
||||||
$expected = array(
|
$expected = array(
|
||||||
'X-ChromePhp-Data' => base64_encode(utf8_encode(json_encode(array(
|
'X-ChromeLogger-Data' => base64_encode(utf8_encode(json_encode(array(
|
||||||
'version' => ChromePHPHandler::VERSION,
|
'version' => ChromePHPHandler::VERSION,
|
||||||
'columns' => array('label', 'log', 'backtrace', 'type'),
|
'columns' => array('label', 'log', 'backtrace', 'type'),
|
||||||
'rows' => array(
|
'rows' => array(
|
||||||
|
Reference in New Issue
Block a user