Repository navigation
1.0.7
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
toERRandCRTevents by default - Added EmailHandler & EmailConfiguration for sending log events as emails using SMTP (with optional STARTTLS/TLS
and authentication), filtered toERRandCRTevents by default - Added DiscordHandler & DiscordConfiguration for posting log events to a Discord channel/thread using a webhook,
filtered toERRandCRTevents 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 viaerror_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 underDescriptorConfiguration::classinstead 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