Last active
December 17, 2015 04:19
-
-
Save aktau/5550077 to your computer and use it in GitHub Desktop.
Logging to chrome (with extension, unfortunately)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Monolog\Logger; | |
use Monolog\Handler\StreamHandler; | |
use Monolog\Handler\FirePHPHandler; | |
use Monolog\Handler\ChromePHPHandler; | |
class SomeClass { | |
private $log; | |
$this->log = new Logger('aktau ->'); | |
$this->log->pushHandler(new ChromePHPHandler(), Logger::WARNING); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment