facile-it / sentry-psr-log
PSR Logger for Sentry
Installs: 5 581
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 6
Forks: 1
Open Issues: 0
Requires
- php: ^7.0
- facile-it/sentry-common: ^0.1.1 || ^0.2.0
- psr/log: ^1.0
- sentry/sentry: ^1.7
Requires (Dev)
- facile-it/facile-coding-standard: dev-composer-plugin
- phpunit/phpunit: ^6.2
Provides
- psr/log-implementation: 1.0.0
This package is auto-updated.
Last update: 2019-09-02 16:52:49 UTC
README
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']);