mirror of
https://github.com/Seldaek/monolog.git
synced 2025-02-24 06:52:34 +01:00
Merge pull request #184 from stof/chromephp
Updated the ChromePHPHandler for the new version of the extension
This commit is contained in:
commit
a1927a7a9b
@ -24,12 +24,12 @@ class ChromePHPHandler extends AbstractProcessingHandler
|
||||
/**
|
||||
* Version of the extension
|
||||
*/
|
||||
const VERSION = '3.0';
|
||||
const VERSION = '4.0';
|
||||
|
||||
/**
|
||||
* Header name
|
||||
*/
|
||||
const HEADER_NAME = 'X-ChromePhp-Data';
|
||||
const HEADER_NAME = 'X-ChromeLogger-Data';
|
||||
|
||||
protected static $initialized = false;
|
||||
|
||||
|
@ -32,7 +32,7 @@ class ChromePHPHandlerTest extends TestCase
|
||||
$handler->handle($this->getRecord(Logger::WARNING));
|
||||
|
||||
$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,
|
||||
'columns' => array('label', 'log', 'backtrace', 'type'),
|
||||
'rows' => array(
|
||||
@ -56,7 +56,7 @@ class ChromePHPHandlerTest extends TestCase
|
||||
$handler->handle($this->getRecord(Logger::WARNING, str_repeat('a', 100*1024)));
|
||||
|
||||
$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,
|
||||
'columns' => array('label', 'log', 'backtrace', 'type'),
|
||||
'rows' => array(
|
||||
@ -99,7 +99,7 @@ class ChromePHPHandlerTest extends TestCase
|
||||
$handler2->handle($this->getRecord(Logger::WARNING));
|
||||
|
||||
$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,
|
||||
'columns' => array('label', 'log', 'backtrace', 'type'),
|
||||
'rows' => array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user