nella / monolog-tracy
Tracy BlueScreen handler for Monolog
Installs: 104 047
Dependents: 1
Suggesters: 0
Security: 0
Stars: 7
Watchers: 4
Forks: 8
Open Issues: 3
Requires
- php: ~7.1
- monolog/monolog: ~1.1 || ~2.0
- tracy/tracy: ~2.7.0
Requires (Dev)
- jakub-onderka/php-console-highlighter: 0.3.2
- jakub-onderka/php-parallel-lint: 0.9.2
- nella/coding-standard: 4.2.1
- phing/phing: 2.16.1
- phpunit/phpunit: 6.5.6
README
Sponzored by Shipito LLC.
Installation
Using Composer:
$ composer require nella/monolog-tracy
Blue Screen Handler
Converts your exception reports into beautiful and clear html files using Tracy.
Tell me how!
Just push the handler into the stack.
use Nella\MonologTracy\BlueScreenHandler; use Nella\MonologTracy\Tracy\BlueScreenFactory; use Nella\MonologTracy\Tracy\LoggerHelper; $logger = new Monolog\Logger('channel'); $factory = new BlueScreenFactory(); $helper = new LoggerHelper(__DIR__ . '/log', $factory->create()); $handler = new BlueScreenHandler($helper); $logger->pushHandler($handler);
… Profit!
$logger->critical('Exception occured!', array( 'exception' => new Exception(), ));