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: 2020-07-29 06:54:30 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