averor/simple-logger

Simplest possible (?) implementation of \Psr\Log\LoggerInterface

1.0.0 2018-08-22 15:36 UTC

This package is auto-updated.

Last update: 2024-10-29 05:10:51 UTC


README

pipeline status coverage report MIT License Semver

Simplest possible (?) implementation of \Psr\Log\LoggerInterface.

Usable for unit/functional testing of logger-involved application parts.

Usage

Examples

$logger = new \Averor\SimpleLogger\Logger('php://output');

$logger = new \Averor\SimpleLogger\Logger('php://stdout');

$logger = new \Averor\SimpleLogger\Logger('/tmp/some.log');

Testing with PHPUnit

$ ./vendor/bin/phpunit ./tests