ozh / log
Simple PSR-3 logger to log messages into an array
v1.0
2017-08-17 12:10 UTC
Requires
- php: >=5.3
- psr/log: ^1.0
Requires (Dev)
- phpunit/phpunit: >=4.0
This package is auto-updated.
Last update: 2024-12-09 20:34:36 UTC
README
A minimalist PSR-3 compliant logger, that logs into an array.
Install
Via Composer
$ composer require ozh/log
Usage
use \Ozh\Log\Logger; require '../vendor/autoload.php'; $logger = new Logger(); $logger->debug('This is a debug message');
See examples/examples.php
for more examples.
This library is fully tested on PHP 5.3 to 7.2 and HHVM.