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

Class usage:

This class is used in:
Class Package
Zumba\Swivel\Map
zumba/swivel dev-master
Zumba\Swivel\Config
zumba/swivel dev-master
Zumba\Swivel\Bucket
zumba/swivel dev-master
Zumba\Swivel\Map
zumba/swivel v3.0.2
Zumba\Swivel\Config
zumba/swivel v3.0.2
Zumba\Swivel\Bucket
zumba/swivel v3.0.2
Zumba\Swivel\Map
zumba/swivel v2.x-dev
Zumba\Swivel\Config
zumba/swivel v2.x-dev
Zumba\Swivel\Bucket
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