Skip to content

qlimix/logging-exception-handler

Repository files navigation

Logging-exception-handler

Travis CI Coveralls Packagist MIT License

Logging exceptions.

Install

Using Composer:

$ composer require qlimix/logging-exception-handler

usage

<?php

use Qlimix\Log\Logger\Exception\ExceptionLogger;
use Exception;

$logHandler = new FileLogHandler();
$logger = new ExceptionLogger($logHandler);

$logger->emergency('foo', new Exception());
$logger->critical('foo', new Exception());
$logger->alert('foo', new Exception());
$logger->error('foo', new Exception());
$logger->debug('foo', new Exception());

Testing

To run all unit tests locally with PHPUnit:

$ vendor/bin/phpunit

Quality

To ensure code quality run grumphp which will run all tools:

$ vendor/bin/grumphp run

Contributing

Please see CONTRIBUTING for details.

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages