Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maks3w/psr3messageassertions

Test your log messages are compliant with PSR-3 Logger
https://github.com/maks3w/psr3messageassertions

assertions hacktoberfest logger php psr-3

Last synced: about 2 months ago
JSON representation

Test your log messages are compliant with PSR-3 Logger

Awesome Lists containing this project

README

        

# PSR-3 Log message assertions

[![Build Status](https://travis-ci.org/Maks3w/Psr3MessageAssertions.svg?branch=master)](https://travis-ci.org/Maks3w/Psr3MessageAssertions)
[![Coverage Status](https://coveralls.io/repos/Maks3w/Psr3MessageAssertions/badge.svg?branch=master)](https://coveralls.io/r/Maks3w/Psr3MessageAssertions?branch=master)

Test your log messages are compliant with the [PSR-3 (Logger) specification](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md)

## Installing via Composer

You can use [Composer](https://getcomposer.org) .

```bash
composer require fr3d/psr3-message-assertions
```

## Usage in PHPUnit

Use [TestLogger.php](src/PhpUnit/TestLogger.php) as the logger dependency.

`TestLogger` will assert each log message is compliant with the PSR-3 Logger standard.

## License

Code licensed under BSD 2 clauses terms & conditions.

See [LICENSE.txt](LICENSE.txt) for more information.