Releases: Seldaek/monolog
Releases · Seldaek/monolog
1.22.0
- Added SlackbotHandler and SlackWebhookHandler to set up Slack integration more easily
- Added MercurialProcessor to add mercurial revision and branch names to log records
- Added support for AWS SDK v3 in DynamoDbHandler
- Fixed fatal errors occuring when normalizing generators that have been fully consumed
- Fixed RollbarHandler to include a level (rollbar level), monolog_level (original name), channel and datetime (unix)
- Fixed RollbarHandler not flushing records automatically, calling close() explicitly is not necessary anymore
- Fixed SyslogUdpHandler to avoid sending empty frames
- Fixed a few PHP 7.0 and 7.1 compatibility issues
1.21.0
- Break: Reverted the addition of $context when the ErrorHandler handles regular php errors from 1.20.0 as it was causing issues
- Added support for more formats in RotatingFileHandler::setFilenameFormat as long as they have Y, m and d in order
- Added ability to format the main line of text the SlackHandler sends by explictly setting a formatter on the handler
- Added information about SoapFault instances in NormalizerFormatter
- Added $handleOnlyReportedErrors option on ErrorHandler::registerErrorHandler (default true) to allow logging of all errors no matter the error_reporting level
1.20.0
- Added FingersCrossedHandler::activate() to manually trigger the handler regardless of the activation policy
- Added StreamHandler::getUrl to retrieve the stream's URL
- Added ability to override addRow/addTitle in HtmlFormatter
- Added the $context to context information when the ErrorHandler handles a regular php error
- Deprecated RotatingFileHandler::setFilenameFormat to only support 3 formats: Y, Y-m and Y-m-d
- Fixed WhatFailureGroupHandler to work with PHP7 throwables
- Fixed a few minor bugs
1.19.0
- Break: StreamHandler will not close streams automatically that it does not own. If you pass in a stream (not a path/url), then it will not close it for you. You can retrieve those using getStream() if needed
- Added DeduplicationHandler to remove duplicate records from notifications across multiple requests, useful for email or other notifications on errors
- Added ability to use
%message%
and other LineFormatter replacements in the subject line of emails sent with NativeMailHandler and SwiftMailerHandler - Fixed HipChatHandler handling of long messages
1.18.2
1.18.1
1.18.0
- Added optional reduction of timestamp precision via
Logger->useMicrosecondTimestamps(false)
, disabling it gets you a bit of performance boost but reduces the precision to the second instead of microsecond - Added possibility to skip some extra stack frames in IntrospectionProcessor if you have some library wrapping Monolog that is always adding frames
- Added
Logger->withName
to clone a logger (keeping all handlers) with a new name - Added FluentdFormatter for the Fluentd unix socket protocol
- Added HandlerWrapper base class to ease the creation of handler wrappers, just extend it and override as needed
- Added support for replacing context sub-keys using
%context.*%
in LineFormatter - Added support for
payload
context value in RollbarHandler - Added setRelease to RavenHandler to describe the application version, sent with every log
- Added support for
fingerprint
context value in RavenHandler - Fixed JSON encoding errors that would gobble up the whole log record, we now handle those more gracefully by dropping chars as needed
- Fixed write timeouts in SocketHandler and derivatives, set to 10sec by default, lower it with
setWritingTimeout()
- Fixed PHP7 compatibility with regard to Exception/Throwable handling in a few places
1.17.2
1.17.1
1.17.0
- Added support for
checksum
andrelease
context/extra values in RavenHandler - Added better support for exceptions in RollbarHandler
- Added UidProcessor::getUid
- Added support for showing the resource type in NormalizedFormatter
- Fixed IntrospectionProcessor triggering PHP notices