Skip to content

@Seldaek Seldaek released this Aug 30, 2019 · 19 commits to master since this release

This changelog includes 2.0.0-beta* changelogs too, to see changes since beta2 check the file.

  • BC Break: This is a major release, see for details if you are coming from a 1.x release
  • BC Break: PHP 7.2 is now the minimum required PHP version.
  • BC Break: Removed SlackbotHandler, RavenHandler and HipChatHandler, see for details
  • BC Break: Monolog\Logger: The record timezone is now set per Logger instance and not statically anymore
  • BC Break: Monolog\Logger: 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: Monolog\Logger: methods log/debug/info/notice/warning/error/critical/alert/emergency now have explicit void return types
  • BC Break: Monolog\Logger: There is no more default handler configured on empty Logger instances
  • BC Break: Quite a few interface changes, only relevant if you implemented your own handlers/processors/formatters
  • BC Break: ElasticSearchHandler renamed to ElasticaHandler
  • BC Break: Various handler-specific breaks, see 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 FallbackGroupHandler which works like the WhatFailureGroupHandler but stops dispatching log records as soon as one handler accepted it
  • Added OverflowHandler which will only flush log records to its nested handler when reaching a certain amount of logs (i.e. only pass through when things go really bad)
  • Added TelegramBotHandler to log records to a Telegram bot account
  • Added SendGridHandler to use the SendGrid API to send emails
  • 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 LogmaticHandler to use the 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 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
  • Added support for RFC3164 (outdated BSD syslog protocol) to SyslogUdpHandler
  • Added support for JsonSerializable when normalizing exceptions
  • Added SoapFault details to formatted exceptions
  • Improved performance of LogglyHandler when sending multiple logs in a single request
  • Fixed support for UTF-8 when cutting strings to avoid cutting a multibyte-character in half
  • Fixed normalizers handling of exception backtraces to avoid serializing arguments in some cases
  • Fixed date timezone handling in SyslogUdpHandler
  • Fixed DeduplicationHandler silently failing to start when file could not be opened
  • Fixed issue in GroupHandler and WhatFailureGroupHandler where setting multiple processors would duplicate records
  • Fixed GelfFormatter losing some data when one attachment was too long
  • Fixed issue in SignalHandler restarting syscalls functionality
  • Fixed many minor issues in various handlers, and probably added a few regressions too
Assets 2
You can’t perform that action at this time.