$processors
$processors : callable[]
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:
Install Google Chrome extension [now dead and removed from the chrome store]
See overview https://github.com/barbushin/php-console#overview
Install PHP Console library https://github.com/barbushin/php-console#installation
Example (result will looks like http://i.hizliresim.com/vg3Pz4.png)
$logger = new \Monolog\Logger('all', array(new \Monolog\Handler\PHPConsoleHandler())); \Monolog\ErrorHandler::register($logger); echo $undefinedVar; $logger->debug('SELECT * FROM users', array('db', 'time' => 0.012)); PC::debug($_SERVER); // PHP Console debugger for any type of vars
$processors : callable[]
$formatter : ?\Monolog\Formatter\FormatterInterface
$level : int
$bubble : bool
$options : array<string,mixed>
__construct(array<string,mixed> $options = [], \PhpConsole\Connector|null $connector = null, mixed $level = Logger::DEBUG, bool $bubble = true) : mixed
| array |
$options | See \Monolog\Handler\PHPConsoleHandler::$options for more details |
| \PhpConsole\Connector|null | $connector | Instance of \PhpConsole\Connector class (optional) |
| mixed | $level | |
| bool | $bubble |