PSR Log
An interface that describes a logger
...The LoggerInterface exposes eight methods to write logs to the eight RFC 5424 levels (debug, info, notice, warning, error, critical, alert, emergency). Every method accepts a string as the message, or an object with a toString() method. Implementors MAY have special handling for the passed objects. If that is not the case, implementors MUST cast it to a string. The interfaces and classes described as well as relevant exception classes and a test suite to verify your implementation are provided as part of the psr/log package. Note that this is not a logger of its own. It is merely an interface that describes a logger. You can pick one of the implementations of the interface to get a logger. ...