facile-it/sentry-psr-log

2.0.1 2017-06-30 12:54 UTC

README

Build Status Code Coverage Scrutinizer Code Quality

This module provide a PSR 3 log implementation for Sentry

Installation

The only supported way to install this module is trough composer. For composer documentation you can refer to getcomposer.org.

composer require facile-it/sentry-psr-log

Example

$ravenClient = new Raven_Client('dsn', []);

$logger = new Facile\Sentry\Log\Logger($ravenClient);

// Logging message
$logger->error('message', ['foo' => 'bar']);

// Logging exception
$exception = new \RuntimeException('foo');
$logger->error($exception, ['foo' => 'bar']);