Description

Multi-logger class.

Keeps track of multiple channels - instances of Psr\Log\LoggerInterface - and makes it easy to log to each of them.

Log to a specic channel by chaining the to() method:

$logger->to('my_channel')->debug('my message');

Log to the default channel by omitting the to() call:

$logger->debug('my message');

Type hierarchy

psr/log dev-master 1.1.3
amzn/amazon-pay-sdk-php 2.x-dev
View more packages
ortnit/logger dev-master
psr-php7/log dev-master 1.0.0
amzn/login-and-pay-with-amazon-sdk-php 2.x-dev
psr/log dev-master 1.1.3
amzn/amazon-pay-sdk-php 2.x-dev
View more packages
ortnit/logger dev-master
psr-php7/log dev-master 1.0.0
amzn/login-and-pay-with-amazon-sdk-php 2.x-dev
psr/log dev-master 1.1.3
amzn/amazon-pay-sdk-php 2.x-dev
View more packages
ortnit/logger dev-master
psr-php7/log dev-master 1.0.0
amzn/login-and-pay-with-amazon-sdk-php 2.x-dev

Class usage:

This class is used in:
Class Package
anlutro\MultiLogger\MultiLoggerProvider
anlutro/multilogger dev-master
anlutro\MultiLogger\MultiLoggerProvider
anlutro/multilogger 0.1.3