2017 © Pedro Peláez
 

library monolog-extensions

A set of Monolog extensions.

image

kucera/monolog-extensions

A set of Monolog extensions.

  • Wednesday, November 9, 2016
  • by pavelkucera
  • Repository
  • 1 Watchers
  • 2 Stars
  • 7,455 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 7 Forks
  • 1 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

kucera/monolog-extensions

Build Status Downloads this Month Latest stable, (*1)

A set of Monolog extensions., (*2)

Installation

Using Composer:, (*3)

$ composer require kucera/monolog-extensions:~0.2.0

Blue Screen Handler

Converts your exception reports into beautiful and clear html files using Tracy., (*4)

Uncaught exception rendered by Tracy, (*5)

Tell me how!

Just push the handler into the stack., (*6)

use Kucera\Monolog\BlueScreenFactory;
use Kucera\Monolog\BlueScreenHandler;
use Monolog\Logger;

$logger = new Monolog\Logger('channel');

$logDirectory = __DIR__ . '/log';
$logger->pushHandler(new BlueScreenHandler(
    Factory::blueScreen(),
    $logDirectory,
    Logger::DEBUG,
    $bubble = TRUE
));

… Profit!, (*7)

$logger->critical('Exception occured!', array(
    'exception' => new Exception(),
));

Tips

You don't have to use the factory method, handler is instantiable on its own. Kucera\Monolog\BlueScreenFactory::create() might come in handy then., (*8)

The Versions

20/03 2015

v0.1.1

0.1.1.0 https://github.com/pavelkucera/monolog-extensions

A set of Monolog extensions.

  Sources   Download

MIT GPL-3.0 GPL-2.0

The Requires

 

The Development Requires

log logging monolog tracy blue screen

16/08 2014

v0.1.0

0.1.0.0 https://github.com/pavelkucera/monolog-extensions

A set of Monolog extensions.

  Sources   Download

MIT GPL-3.0 GPL-2.0

The Requires

 

The Development Requires

log logging monolog tracy blue screen