Monolog v2.0.0-beta1 Release Notes

Release Date: 2018-12-08 // over 5 years ago
    • ๐Ÿš€ BC Break: This is a major release, see UPGRADE.md for details if you are coming from a 1.x release
    • BC Break: PHP 7.1 is now the minimum required PHP version.
    • BC Break: Quite a few interface changes, only relevant if you implemented your own handlers/processors/formatters
    • ๐Ÿšš BC Break: Removed non-PSR-3 methods to add records, all the add* (e.g. addWarning) methods as well as emerg, crit, err and warn
    • BC Break: The record timezone is now set per Logger instance and not statically anymore
    • ๐Ÿ”ง BC Break: There is no more default handler configured on empty Logger instances
    • BC Break: ElasticSearchHandler renamed to ElasticaHandler
    • โฌ†๏ธ BC Break: Various handler-specific breaks, see UPGRADE.md for details
    • โž• Added scalar type hints and return hints in all the places it was possible. Switched strict_types on for more reliability.
    • โž• Added DateTimeImmutable support, all record datetime are now immutable, and will toString/json serialize with the correct date format, including microseconds (unless disabled)
    • โž• Added timezone and microseconds to the default date format
    • โž• Added SendGridHandler to use the SendGrid API to send emails
    • โž• Added LogmaticHandler to use the Logmatic.io API to store log records
    • โž• Added SqsHandler to send log records to an AWS SQS queue
    • โž• Added ElasticsearchHandler to send records via the official ES library. Elastica users should now use ElasticaHandler instead of ElasticSearchHandler
    • โž• Added NoopHandler which is similar to the NullHandle but does not prevent the bubbling of log records to handlers further down the configuration, useful for temporarily disabling a handler in configuration files
    • โž• Added ProcessHandler to write log output to the STDIN of a given process
    • โž• Added HostnameProcessor that adds the machine's hostname to log records
    • โž• Added a $dateFormat option to the PsrLogMessageProcessor which lets you format DateTime instances nicely
    • โž• Added support for the PHP 7.x mongodb extension in the MongoDBHandler
    • ๐Ÿ›  Fixed many minor issues in various handlers, and probably added a few regressions too