Skip to content

1.0.7

Choose a tag to compare

@Netkas Netkas released this 05 Oct 14:03
· 9 commits to master since this release
5cce78d

This update introduces new handlers and minor bug fixes

Added

  • Added TelegramHandler & TelegramConfiguration for pushing log events to a Telegram chat/topic using a bot, filtered
    to ERR and CRT events by default
  • Added EmailHandler & EmailConfiguration for sending log events as emails using SMTP (with optional STARTTLS/TLS
    and authentication), filtered to ERR and CRT events by default
  • Added DiscordHandler & DiscordConfiguration for posting log events to a Discord channel/thread using a webhook,
    filtered to ERR and CRT events by default

Changed

  • Log handlers are now isolated from each other, a handler that throws is disabled for that logger instance and the
    failure is reported once via error_log() instead of propagating to the caller or preventing other handlers from
    receiving the event
  • Events raised while another event is being handled (e.g. PHP warnings emitted by a handler) are dropped to prevent
    infinite recursion
  • EmailHandler's timeout now applies to the whole SMTP session rather than each reply

Fixed

  • Logger::getAvailability() reported the descriptor handler under DescriptorConfiguration::class instead of
    DescriptorHandler::class
  • The shutdown handler registered by Logger::registerHandlers() reported the last error of the request as critical
    even when it was a non-fatal error (e.g. a warning) that had already been logged, it now only reports fatal errors