averor / simple-logger
Simplest possible (?) implementation of \Psr\Log\LoggerInterface
Installs: 34
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Forks: 0
pkg:composer/averor/simple-logger
Requires
- php: >=5.6
- psr/log: ^1.0
Requires (Dev)
- phpunit/phpunit: ~5.7
This package is auto-updated.
Last update: 2025-09-29 01:56:03 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
