This library implements the PSR-3
Install the latest version with
$ composer require ajaxy/logger
<?php
use Ajaxy\Logger\Logger;
use Ajaxy\Logger\Handler\Stream;
// create a log channel
$log = new Logger();
$log->pushHandler(new Stream('path/to/dir/', Logger::WARNING));
// dynamic logging
$log->debug('Foo');
$log->error('Bar');
// this will save the logging to anything.log
$log->{anything}('Bar');
- Ajaxy\Logger works with PHP 5.6 or above.
Bugs and feature request are tracked on GitHub
Naji Amer - icu090@gmail.com - http://ajaxy.org
Ajaxy\Logger is licensed under the MIT License - see the LICENSE
file for details