Monolog extensions for use within Graze

2.0.5 2019-06-05 16:07 UTC


Monolog Extensions

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads PHP 5.6 PHP 7.0

This library supplies additional log handlers, formatters and processors for use with Monolog. The intention is to make use of the library internally with the aim to eventually submit relevant parts to Monolog core.

It can be installed in whichever way you prefer, but we recommend Composer.

$ composer require graze/monolog-extensions

ErrorHandlerBuilder usage

use Aws\DynamoDb\DynamoDbClient;
use Graze\Monolog\ErrorHandlerBuilder;

$builder = new ErrorHandlerBuilder();


RaygunHandler Usage

use Graze\Monolog\Handler\RaygunHandler;
use Monolog\Logger;
use Raygun4php\RaygunClient;

// Create the client, using the Raygun SDK
$client = new RaygunClient('api-key');

// Create the handler
$handler = new RaygunHandler($client);

// Create the logger
$logger = new Logger('project-name', array($handler));


We accept contributions to the source via Pull Request, but passing unit tests must be included before it will be considered for merge.

$ make
$ make test


The content of this library is released under the MIT License by Nature Delivered Ltd.