PSR-3 - logger interface
Logging different type of events is a common practice for applications. While one application might categorize these types of events into errors, informational events, and warnings, others might throw in more elaborate levels of severity logging. The same goes for the actual format of the log message itself. Goes to say that every application might easily have its own flavor of logging mechanism. This stands in a way of interoperability.
The PSR-3 standard sets out to fix this by defining a standard for the actual logger interface. Such a standardized interface then enables us to write PHP application logs in a simple and universal way.
The syslog protocol (RFC 5424), defined by Internet Engineering Task Force (IETF), differentiates the following eight severity levels:
emergency
: This states the system is unusablealert
: This states action must be taken immediatelycritical
: This states critical conditionserror
: This states error conditionswarning
: This states warning...