averor / simple-logger
Simplest possible (?) implementation of \Psr\Log\LoggerInterface
1.0.0
2018-08-22 15:36 UTC
Requires
- php: >=5.6
- psr/log: ^1.0
Requires (Dev)
- phpunit/phpunit: ~5.7
This package is auto-updated.
Last update: 2024-10-29 05:10:51 UTC
README
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