Description

This Logger can be used to avoid conditional log calls

Logging should always be optional, and if no logger is provided to your library creating a NullLogger instance to have something to throw logs at is a good way to avoid littering your code with if ($this->logger) { } blocks.

This logger extends the PSR Compliant NullLogger to implement __set_state() This allows default support for var_export() compatable code generation. Any logger you implement will need to return a PSR compliant logger instance In the __set_state() function for var_export() to work as expected.

Type hierarchy

redweb-tn/codeigniter4 dev-master 4.0
resque/yii2-resque dev-master
rkr/amazon-pay-sdk-php 2.x-dev
struggle-for-php/sfp-psalm-psr-log-plugin dev-master 0.2.0
zire/psr-log dev-master 1.1.4
redweb-tn/codeigniter4 dev-master 4.0
resque/yii2-resque dev-master
rkr/amazon-pay-sdk-php 2.x-dev
struggle-for-php/sfp-psalm-psr-log-plugin dev-master 0.2.0
zire/psr-log dev-master 1.1.4
redweb-tn/codeigniter4 dev-master 4.0
resque/yii2-resque dev-master
rkr/amazon-pay-sdk-php 2.x-dev
zire/psr-log dev-master 1.1.4

Class usage:

This class is used in:
Class Package
Zumba\Swivel\Map
zumba/swivel dev-master
Zumba\Swivel\Map
zumba/swivel v3.0.2
Zumba\Swivel\Map
zumba/swivel v2.x-dev
Zumba\Swivel\Map
zumba/swivel v1.3.x-dev
Zumba\Swivel\Config
zumba/swivel v1.3.x-dev
Zumba\Swivel\Bucket
zumba/swivel v1.3.x-dev