ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Monolog handler for Google Chrome extension "PHP Console". More...
Public Member Functions | ||||
__construct (array $options=array(), Connector $connector=null, $level=Logger::DEBUG, $bubble=true) | ||||
getConnector () | ||||
getOptions () | ||||
handle (array $record) | ||||
Handles a record. 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 () | ||||
Protected Member Functions | |
write (array $record) | |
Writes the record down to the log of the implementing handler. More... | |
getDefaultFormatter () | |
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... | |
Private Member Functions | |
initOptions (array $options) | |
initConnector (Connector $connector=null) | |
handleDebugRecord (array $record) | |
handleExceptionRecord (array $record) | |
handleErrorRecord (array $record) | |
getRecordTags (array &$record) | |
Private Attributes | |
$options | |
$connector | |
Additional Inherited Members | |
Protected Attributes inherited from Monolog\Handler\AbstractHandler | |
$level = Logger::DEBUG | |
$bubble = true | |
$formatter | |
$processors = array() | |
Monolog handler for Google Chrome extension "PHP Console".
Display PHP error/debug log messages in Google Chrome console and notification popups, executes PHP code remotely
Usage:
Example (result will looks like http://i.hizliresim.com/vg3Pz4.png)
$logger = new ('all', array(new ())); ::register($logger); echo $undefinedVar; $logger->addDebug('SELECT * FROM users', array('db', 'time' => 0.012)); PC::debug($_SERVER); // PHP Console debugger for any type of vars
Definition at line 40 of file PHPConsoleHandler.php.
Monolog\Handler\PHPConsoleHandler::__construct | ( | array | $options = array() , |
Connector | $connector = null , |
||
$level = Logger::DEBUG , |
|||
$bubble = true |
|||
) |
array | $options | See $options for more details |
Connector | null | $connector | Instance of class (optional) |
int | $level | |
bool | $bubble |
Exception |
Definition at line 75 of file PHPConsoleHandler.php.
References Monolog\Handler\AbstractHandler\$bubble, Monolog\Handler\PHPConsoleHandler\$connector, Monolog\Handler\AbstractHandler\$level, Monolog\Handler\PHPConsoleHandler\$options, Monolog\Handler\PHPConsoleHandler\initConnector(), and Monolog\Handler\PHPConsoleHandler\initOptions().
Monolog\Handler\PHPConsoleHandler::getConnector | ( | ) |
Definition at line 150 of file PHPConsoleHandler.php.
References Monolog\Handler\PHPConsoleHandler\$connector.
|
protected |
Definition at line 238 of file PHPConsoleHandler.php.
Monolog\Handler\PHPConsoleHandler::getOptions | ( | ) |
Definition at line 155 of file PHPConsoleHandler.php.
References Monolog\Handler\PHPConsoleHandler\$options.
|
private |
Definition at line 214 of file PHPConsoleHandler.php.
Referenced by Monolog\Handler\PHPConsoleHandler\handleDebugRecord().
Monolog\Handler\PHPConsoleHandler::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.
array | $record | The record to handle |
Implements Monolog\Handler\HandlerInterface.
Definition at line 160 of file PHPConsoleHandler.php.
References Monolog\Handler\AbstractHandler\$bubble.
|
private |
Definition at line 186 of file PHPConsoleHandler.php.
References $message, $tags, and Monolog\Handler\PHPConsoleHandler\getRecordTags().
Referenced by Monolog\Handler\PHPConsoleHandler\write().
|
private |
Definition at line 201 of file PHPConsoleHandler.php.
Referenced by Monolog\Handler\PHPConsoleHandler\write().
|
private |
Definition at line 196 of file PHPConsoleHandler.php.
Referenced by Monolog\Handler\PHPConsoleHandler\write().
|
private |
Definition at line 95 of file PHPConsoleHandler.php.
References Monolog\Handler\PHPConsoleHandler\$connector, and $handler.
Referenced by Monolog\Handler\PHPConsoleHandler\__construct().
|
private |
Definition at line 85 of file PHPConsoleHandler.php.
Referenced by Monolog\Handler\PHPConsoleHandler\__construct().
|
protected |
Writes the record down to the log of the implementing handler.
array | $record |
Definition at line 175 of file PHPConsoleHandler.php.
References Monolog\Handler\PHPConsoleHandler\handleDebugRecord(), Monolog\Handler\PHPConsoleHandler\handleErrorRecord(), Monolog\Handler\PHPConsoleHandler\handleExceptionRecord(), and Monolog\Logger\NOTICE.
|
private |
Definition at line 66 of file PHPConsoleHandler.php.
Referenced by Monolog\Handler\PHPConsoleHandler\__construct(), Monolog\Handler\PHPConsoleHandler\getConnector(), and Monolog\Handler\PHPConsoleHandler\initConnector().
|
private |
Definition at line 42 of file PHPConsoleHandler.php.
Referenced by Monolog\Handler\PHPConsoleHandler\__construct(), and Monolog\Handler\PHPConsoleHandler\getOptions().