mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-24 18:16:10 +02:00
796 B
796 B
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 asemerg,crit,errandwarn. -
HandlerInterfacehas been split off and two new interfaces now exist for more granular controls:ProcessableHandlerInterfaceandFormattableHandlerInterface. Handlers not extendingAbstractHandlershould make sure to implement the relevant interfaces. -
HandlerInterfacenow requires theclosemethod to be implemented. This only impacts you if you implement the interface yourself, but you can extend the newMonolog\Handler\Handlerbase class.