nella/monolog-tracy

This package is abandoned and no longer maintained. The author suggests using the mangoweb/monolog-tracy-handler package instead.

Tracy BlueScreen handler for Monolog

v2.0.6 2020-02-20 13:08 UTC

This package is auto-updated.

Last update: 2021-03-08 15:26:33 UTC


README

Build Status Windows Build Status Code Coverage SensioLabsInsight Status Latest Stable Version Composer Downloads Dependency Status License MIT, GPL-2, GPL-3

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.

Uncaught exception rendered by 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(),
));