php-extended/php-multiple-logger

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

3.1.18 2021-11-13 12:49 UTC

README

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

coverage build status

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": "^3"
		...
	}

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).