php-extended/php-multiple-logger

A psr-3 compliant logger to dispatch logs to multiple psr-3 loggers

2.0.1 2020-04-12 14:30 UTC

This package is auto-updated.

Last update: 2020-06-12 14:48:08 UTC


README

A psr-3 compliant logger to dispatch logs to multiple psr-3 loggers

Installation

The installation of this library is made via composer. Download composer.phar from their website. Then add to your composer.json :

	"require": {
		...
		"php-extended/php-multiple-logger": "^2"
		...
	}

Then run php composer.phar update to install this library. The autoloading of all classes of this library is made through composer's autoloader.

Basic Usage

This library gives a very basic psr-3 logger. Use it as described in the docs of the psr-3 : https://www.php-fig.org/psr/psr-3/


use PhpExtended\Logger\MultipleLogger;

$logger = new MultipleLogger(array('<logger1>', '<logger2>'));

$logger->error('Nah.');
	// dispatch $logger1->error('Nah.');
	// dispatch $logger2->error('Nah.');

License

MIT (See license file).