facile-it / sentry-psr-log
2.0.1
2017-06-30 12:54 UTC
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
本模块为 Sentry 提供 PSR 3 日志实现。
安装
安装此模块的唯一支持方式是通过 composer。有关 composer 文档,您可以参考 getcomposer.org。
composer require facile-it/sentry-psr-log
示例
$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']);