ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Handler sending logs to the ChromePHP extension (http://www.chromephp.com/) More...
Public Member Functions | ||||
__construct ($level=Logger::DEBUG, $bubble=true) | ||||
handleBatch (array $records) | ||||
{Handles a set of records at once.
| ||||
__get ($property) | ||||
BC getter for the sendHeaders property that has been made static. More... | ||||
__set ($property, $value) | ||||
BC setter for the sendHeaders property that has been made static. More... | ||||
Public Member Functions inherited from Monolog\Handler\AbstractProcessingHandler | ||||
handle (array $record) | ||||
{Handles a record.All records may be passed to this method, and the handler should discard those that it does not want to handle.The return value of this function controls the bubbling process of the handler stack. Unless the bubbling is interrupted (by returning true), the Logger class will keep on calling further handlers in the stack with a given log record.
| ||||
Public Member Functions inherited from Monolog\Handler\AbstractHandler | ||||
__construct ($level=Logger::DEBUG, $bubble=true) | ||||
isHandling (array $record) | ||||
{Checks whether the given record will be handled by this handler.This is mostly done for performance reasons, to avoid calling processors for nothing.Handlers should still check the record levels within handle(), returning false in isHandling() is no guarantee that handle() will not be called, and isHandling() might not be called for a given record.
| ||||
handleBatch (array $records) | ||||
{Handles a set of records at once.
| ||||
close () | ||||
Closes the handler. More... | ||||
pushProcessor ($callback) | ||||
{Adds a processor in the stack.
| ||||
popProcessor () | ||||
{Removes the processor on top of the stack and returns it.
| ||||
setFormatter (FormatterInterface $formatter) | ||||
{Sets the formatter.
| ||||
getFormatter () | ||||
{Gets the formatter.
| ||||
setLevel ($level) | ||||
Sets minimum logging level at which this handler will be triggered. More... | ||||
getLevel () | ||||
Gets minimum logging level at which this handler will be triggered. More... | ||||
setBubble ($bubble) | ||||
Sets the bubbling behavior. More... | ||||
getBubble () | ||||
Gets the bubbling behavior. More... | ||||
__destruct () | ||||
Data Fields | |
const | VERSION = '4.0' |
Version of the extension. More... | |
const | HEADER_NAME = 'X-ChromeLogger-Data' |
Header name. More... | |
const | USER_AGENT_REGEX = '{\b(?:Chrome/\d+(?:\.\d+)*|Firefox/(?:4[3-9]|[5-9]\d|\d{3,})(?:\.\d)*)\b}' |
Regular expression to detect supported browsers (matches any Chrome, or Firefox 43+) More... | |
Protected Member Functions | |
getDefaultFormatter () | |
write (array $record) | |
Creates & sends header for a record. More... | |
send () | |
Sends the log header. More... | |
sendHeader ($header, $content) | |
Send header string to the client. More... | |
headersAccepted () | |
Verifies if the headers are accepted by the current user agent. More... | |
Protected Member Functions inherited from Monolog\Handler\AbstractProcessingHandler | |
write (array $record) | |
Writes the record down to the log of the implementing handler. More... | |
processRecord (array $record) | |
Processes a record. More... | |
Protected Member Functions inherited from Monolog\Handler\AbstractHandler | |
getDefaultFormatter () | |
Gets the default formatter. More... | |
Static Protected Attributes | |
static | $initialized = false |
static | $overflowed = false |
static | $json |
static | $sendHeaders = true |
Additional Inherited Members | |
Protected Attributes inherited from Monolog\Handler\AbstractHandler | |
$level = Logger::DEBUG | |
$bubble = true | |
$formatter | |
$processors = array() | |
Handler sending logs to the ChromePHP extension (http://www.chromephp.com/)
This also works out of the box with Firefox 43+
Definition at line 24 of file ChromePHPHandler.php.
Monolog\Handler\ChromePHPHandler::__construct | ( | $level = Logger::DEBUG , |
|
$bubble = true |
|||
) |
int | $level | The minimum logging level at which this handler will be triggered |
Boolean | $bubble | Whether the messages that are handled can bubble up the stack or not |
Definition at line 64 of file ChromePHPHandler.php.
References Monolog\Handler\AbstractHandler\$bubble, and Monolog\Handler\AbstractHandler\$level.
Monolog\Handler\ChromePHPHandler::__get | ( | $property | ) |
BC getter for the sendHeaders property that has been made static.
Definition at line 191 of file ChromePHPHandler.php.
Monolog\Handler\ChromePHPHandler::__set | ( | $property, | |
$value | |||
) |
BC setter for the sendHeaders property that has been made static.
Definition at line 203 of file ChromePHPHandler.php.
|
protected |
Definition at line 96 of file ChromePHPHandler.php.
Monolog\Handler\ChromePHPHandler::handleBatch | ( | array | $records | ) |
{Handles a set of records at once.
array | $records | The records to handle (an array of record arrays) |
Implements Monolog\Handler\HandlerInterface.
Definition at line 75 of file ChromePHPHandler.php.
References $messages, array, Monolog\Handler\AbstractHandler\getFormatter(), Monolog\Handler\AbstractProcessingHandler\processRecord(), and Monolog\Handler\ChromePHPHandler\send().
|
protected |
Verifies if the headers are accepted by the current user agent.
Definition at line 179 of file ChromePHPHandler.php.
References $_SERVER.
Referenced by Monolog\Handler\ChromePHPHandler\send().
|
protected |
Sends the log header.
Definition at line 120 of file ChromePHPHandler.php.
References $_SERVER, $data, Monolog\Handler\ChromePHPHandler\$json, array, Monolog\Handler\AbstractHandler\getFormatter(), Monolog\Logger\getLevelName(), Monolog\Handler\ChromePHPHandler\headersAccepted(), Monolog\Handler\ChromePHPHandler\sendHeader(), and Monolog\Logger\WARNING.
Referenced by Monolog\Handler\ChromePHPHandler\handleBatch(), and Monolog\Handler\ChromePHPHandler\write().
|
protected |
Send header string to the client.
string | $header | |
string | $content |
Definition at line 167 of file ChromePHPHandler.php.
References $header, and header.
Referenced by Monolog\Handler\ChromePHPHandler\send().
|
protected |
Creates & sends header for a record.
array | $record |
Definition at line 108 of file ChromePHPHandler.php.
References Monolog\Handler\ChromePHPHandler\send().
|
staticprotected |
Definition at line 41 of file ChromePHPHandler.php.
|
staticprotected |
Definition at line 52 of file ChromePHPHandler.php.
Referenced by Monolog\Handler\ChromePHPHandler\send().
|
staticprotected |
Definition at line 50 of file ChromePHPHandler.php.
|
staticprotected |
Definition at line 58 of file ChromePHPHandler.php.
const Monolog\Handler\ChromePHPHandler::HEADER_NAME = 'X-ChromeLogger-Data' |
Header name.
Definition at line 34 of file ChromePHPHandler.php.
const Monolog\Handler\ChromePHPHandler::USER_AGENT_REGEX = '{\b(?:Chrome/\d+(?:\.\d+)*|Firefox/(?:4[3-9]|[5-9]\d|\d{3,})(?:\.\d)*)\b}' |
Regular expression to detect supported browsers (matches any Chrome, or Firefox 43+)
Definition at line 39 of file ChromePHPHandler.php.
const Monolog\Handler\ChromePHPHandler::VERSION = '4.0' |
Version of the extension.
Definition at line 29 of file ChromePHPHandler.php.
Referenced by Monolog\Handler\ChromePHPHandlerTest\testConcurrentHandlers(), Monolog\Handler\ChromePHPHandlerTest\testHeaders(), and Monolog\Handler\ChromePHPHandlerTest\testHeadersOverflow().