Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 796 Bytes

UPGRADE.md

File metadata and controls

17 lines (13 loc) · 796 Bytes

2.0.0

  • The timezone is now set per Logger instance and not statically, either via ->setTimezone or passed in the constructor. Calls to Logger::setTimezone should be converted.

  • Removed non-PSR-3 methods to add records, all the add* (e.g. addWarning) methods as well as emerg, crit, err and warn.

  • HandlerInterface has been split off and two new interfaces now exist for more granular controls: ProcessableHandlerInterface and FormattableHandlerInterface. Handlers not extending AbstractHandler should make sure to implement the relevant interfaces.

  • HandlerInterface now requires the close method to be implemented. This only impacts you if you implement the interface yourself, but you can extend the new Monolog\Handler\Handler base class.