Seldaek/monolog
### [`v3.1.0`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#310-2022-06-09)
[Compare Source](https://togithub.com/Seldaek/monolog/compare/3.0.0...3.1.0)
- Added `$datetime` parameter to `Logger::addRecord` as low level API to allow logging into the past or future ([#1682](https://togithub.com/Seldaek/monolog/issues/1682))
- Added `Logger::useLoggingLoopDetection` to allow disabling cyclic logging detection in concurrent frameworks ([#1681](https://togithub.com/Seldaek/monolog/issues/1681))
- Fixed handling of fatal errors if callPrevious is disabled in ErrorHandler ([#1670](https://togithub.com/Seldaek/monolog/issues/1670))
- Fixed interop issue by removing the need for a return type in ProcessorInterface ([#1680](https://togithub.com/Seldaek/monolog/issues/1680))
- Marked the reusable `Monolog\Test\TestCase` class as `@internal` to make sure PHPStorm does not show it above PHPUnit, you may still use it to test your own handlers/etc though ([#1677](https://togithub.com/Seldaek/monolog/issues/1677))
- Fixed RotatingFileHandler issue when the date format contained slashes ([#1671](https://togithub.com/Seldaek/monolog/issues/1671))
### [`v3.0.0`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#300-2022-05-10)
[Compare Source](https://togithub.com/Seldaek/monolog/compare/2.7.0...3.0.0)
Changes from RC1
- The `Monolog\LevelName` enum does not exist anymore, use `Monolog\Level->getName()` instead.
### [`v2.7.0`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#270-2022-06-09)
[Compare Source](https://togithub.com/Seldaek/monolog/compare/2.6.0...2.7.0)
- Added `$datetime` parameter to `Logger::addRecord` as low level API to allow logging into the past or future ([#1682](https://togithub.com/Seldaek/monolog/issues/1682))
- Added `Logger::useLoggingLoopDetection` to allow disabling cyclic logging detection in concurrent frameworks ([#1681](https://togithub.com/Seldaek/monolog/issues/1681))
- Fixed handling of fatal errors if callPrevious is disabled in ErrorHandler ([#1670](https://togithub.com/Seldaek/monolog/issues/1670))
- Marked the reusable `Monolog\Test\TestCase` class as `@internal` to make sure PHPStorm does not show it above PHPUnit, you may still use it to test your own handlers/etc though ([#1677](https://togithub.com/Seldaek/monolog/issues/1677))
- Fixed RotatingFileHandler issue when the date format contained slashes ([#1671](https://togithub.com/Seldaek/monolog/issues/1671))
### [`v2.6.0`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#260-2022-05-10)
[Compare Source](https://togithub.com/Seldaek/monolog/compare/2.5.0...2.6.0)
- Deprecated `SwiftMailerHandler`, use `SymfonyMailerHandler` instead
- Added `SymfonyMailerHandler` ([#1663](https://togithub.com/Seldaek/monolog/issues/1663))
- Added ElasticSearch 8.x support to the ElasticsearchHandler ([#1662](https://togithub.com/Seldaek/monolog/issues/1662))
- Added a way to filter/modify stack traces in LineFormatter ([#1665](https://togithub.com/Seldaek/monolog/issues/1665))
- Fixed UdpSocket not being able to reopen/reconnect after close()
- Fixed infinite loops if a Handler is triggering logging while handling log records
### [`v2.5.0`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#250-2022-04-08)
[Compare Source](https://togithub.com/Seldaek/monolog/compare/2.4.0...2.5.0)
- Added `callType` to IntrospectionProcessor ([#1612](https://togithub.com/Seldaek/monolog/issues/1612))
- Fixed AsMonologProcessor syntax to be compatible with PHP 7.2 ([#1651](https://togithub.com/Seldaek/monolog/issues/1651))
### [`v2.4.0`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#240-2022-03-14)
[Compare Source](https://togithub.com/Seldaek/monolog/compare/2.3.5...2.4.0)
- Added [`Monolog\LogRecord`](src/Monolog/LogRecord.php) interface that can be used to type-hint records like `array|\Monolog\LogRecord $record` to be forward compatible with the upcoming Monolog 3 changes
- Added `includeStacktraces` constructor params to LineFormatter & JsonFormatter ([#1603](https://togithub.com/Seldaek/monolog/issues/1603))
- Added `persistent`, `timeout`, `writingTimeout`, `connectionTimeout`, `chunkSize` constructor params to SocketHandler and derivatives ([#1600](https://togithub.com/Seldaek/monolog/issues/1600))
- Added `AsMonologProcessor` PHP attribute which can help autowiring / autoconfiguration of processors if frameworks / integrations decide to make use of it. This is useless when used purely with Monolog ([#1637](https://togithub.com/Seldaek/monolog/issues/1637))
- Added support for keeping native BSON types as is in MongoDBFormatter ([#1620](https://togithub.com/Seldaek/monolog/issues/1620))
- Added support for a `user_agent` key in WebProcessor, disabled by default but you can use it by configuring the $extraFields you want ([#1613](https://togithub.com/Seldaek/monolog/issues/1613))
- Added support for username/userIcon in SlackWebhookHandler ([#1617](https://togithub.com/Seldaek/monolog/issues/1617))
- Added extension points to BrowserConsoleHandler ([#1593](https://togithub.com/Seldaek/monolog/issues/1593))
- Added record message/context/extra info to exceptions thrown when a StreamHandler cannot open its stream to avoid completely losing the data logged ([#1630](https://togithub.com/Seldaek/monolog/issues/1630))
- Fixed error handler signature to accept a null $context which happens with internal PHP errors ([#1614](https://togithub.com/Seldaek/monolog/issues/1614))
- Fixed a few setter methods not returning `self` ([#1609](https://togithub.com/Seldaek/monolog/issues/1609))
- Fixed handling of records going over the max Telegram message length ([#1616](https://togithub.com/Seldaek/monolog/issues/1616))
### [`v2.3.5`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#235-2021-10-01)
[Compare Source](https://togithub.com/Seldaek/monolog/compare/2.3.4...2.3.5)
- Fixed regression in StreamHandler since 2.3.3 on systems with the memory_limit set to >=20GB ([#1592](https://togithub.com/Seldaek/monolog/issues/1592))
### [`v2.3.4`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#234-2021-09-15)
[Compare Source](https://togithub.com/Seldaek/monolog/compare/2.3.3...2.3.4)
- Fixed support for psr/log 3.x ([#1589](https://togithub.com/Seldaek/monolog/issues/1589))
### [`v2.3.3`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#233-2021-09-14)
[Compare Source](https://togithub.com/Seldaek/monolog/compare/2.3.2...2.3.3)
- Fixed memory usage when using StreamHandler and calling stream_get_contents on the resource you passed to it ([#1578](https://togithub.com/Seldaek/monolog/issues/1578), [#1577](https://togithub.com/Seldaek/monolog/issues/1577))
- Fixed support for psr/log 2.x ([#1587](https://togithub.com/Seldaek/monolog/issues/1587))
- Fixed some type annotations
### [`v2.3.2`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#232-2021-07-23)
[Compare Source](https://togithub.com/Seldaek/monolog/compare/2.3.1...2.3.2)
- Fixed compatibility with PHP 7.2 - 7.4 when experiencing PCRE errors ([#1568](https://togithub.com/Seldaek/monolog/issues/1568))
### [`v2.3.1`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#231-2021-07-14)
[Compare Source](https://togithub.com/Seldaek/monolog/compare/2.3.0...2.3.1)
- Fixed Utils::getClass handling of anonymous classes not being fully compatible with PHP 8 ([#1563](https://togithub.com/Seldaek/monolog/issues/1563))
- Fixed some `@inheritDoc` annotations having the wrong case
### [`v2.3.0`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#230-2021-07-05)
[Compare Source](https://togithub.com/Seldaek/monolog/compare/2.2.0...2.3.0)
- Added a ton of PHPStan type annotations as well as type aliases on Monolog\Logger for Record, Level and LevelName that you can import ([#1557](https://togithub.com/Seldaek/monolog/issues/1557))
- Added ability to customize date format when using JsonFormatter ([#1561](https://togithub.com/Seldaek/monolog/issues/1561))
- Fixed FilterHandler not calling reset on its internal handler when reset() is called on it ([#1531](https://togithub.com/Seldaek/monolog/issues/1531))
- Fixed SyslogUdpHandler not setting the timezone correctly on DateTimeImmutable instances ([#1540](https://togithub.com/Seldaek/monolog/issues/1540))
- Fixed StreamHandler thread safety - chunk size set to 2GB now to avoid interlacing when doing concurrent writes ([#1553](https://togithub.com/Seldaek/monolog/issues/1553))
### [`v2.2.0`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#220-2020-12-14)
[Compare Source](https://togithub.com/Seldaek/monolog/compare/2.1.1...2.2.0)
- Added JSON_PARTIAL_OUTPUT_ON_ERROR to default json encoding flags, to avoid dropping entire context data or even records due to an invalid subset of it somewhere
- Added setDateFormat to NormalizerFormatter (and Line/Json formatters by extension) to allow changing this after object creation
- Added RedisPubSubHandler to log records to a Redis channel using PUBLISH
- Added support for Elastica 7, and deprecated the $type argument of ElasticaFormatter which is not in use anymore as of Elastica 7
- Added support for millisecond write timeouts in SocketHandler, you can now pass floats to setWritingTimeout, e.g. 0.2 is 200ms
- Added support for unix sockets in SyslogUdpHandler (set $port to 0 to make the $host a unix socket)
- Added handleBatch support for TelegramBotHandler
- Added RFC5424e extended date format including milliseconds to SyslogUdpHandler
- Added support for configuring handlers with numeric level values in strings (coming from e.g. env vars)
- Fixed Wildfire/FirePHP/ChromePHP handling of unicode characters
- Fixed PHP 8 issues in SyslogUdpHandler
- Fixed internal type error when mbstring is missing
### [`v2.1.1`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#211-2020-07-23)
[Compare Source](https://togithub.com/Seldaek/monolog/compare/2.1.0...2.1.1)
- Fixed removing of json encoding options
- Fixed type hint of $level not accepting strings in SendGridHandler and OverflowHandler
- Fixed SwiftMailerHandler not accepting email templates with an empty subject
- Fixed array access on null in RavenHandler
- Fixed unique_id in WebProcessor not being disableable
### [`v2.1.0`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#210-2020-05-22)
[Compare Source](https://togithub.com/Seldaek/monolog/compare/2.0.2...2.1.0)
- Added `JSON_INVALID_UTF8_SUBSTITUTE` to default json flags, so that invalid UTF8 characters now get converted to [�](https://en.wikipedia.org/wiki/Specials_\(Unicode_block\)#Replacement_character) instead of being converted from ISO-8859-15 to UTF8 as it was before, which was hardly a comprehensive solution
- Added `$ignoreEmptyContextAndExtra` option to JsonFormatter to skip empty context/extra entirely from the output
- Added `$parseMode`, `$disableWebPagePreview` and `$disableNotification` options to TelegramBotHandler
- Added tentative support for PHP 8
- NormalizerFormatter::addJsonEncodeOption and removeJsonEncodeOption are now public to allow modifying default json flags
- Fixed GitProcessor type error when there is no git repo present
- Fixed normalization of SoapFault objects containing deeply nested objects as "detail"
- Fixed support for relative paths in RotatingFileHandler
### [`v2.0.2`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#202-2019-12-20)
[Compare Source](https://togithub.com/Seldaek/monolog/compare/2.0.1...2.0.2)
- Fixed ElasticsearchHandler swallowing exceptions details when failing to index log records
- Fixed normalization of SoapFault objects containing non-strings as "detail" in LineFormatter
- Fixed formatting of resources in JsonFormatter
- Fixed RedisHandler failing to use MULTI properly when passed a proxied Redis instance (e.g. in Symfony with lazy services)
- Fixed FilterHandler triggering a notice when handleBatch was filtering all records passed to it
- Fixed Turkish locale messing up the conversion of level names to their constant values
### [`v2.0.1`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#201-2019-11-13)
[Compare Source](https://togithub.com/Seldaek/monolog/compare/2.0.0...2.0.1)
- Fixed normalization of Traversables to avoid traversing them as not all of them are rewindable
- Fixed setFormatter/getFormatter to forward to the nested handler in FilterHandler, FingersCrossedHandler, BufferHandler, OverflowHandler and SamplingHandler
- Fixed BrowserConsoleHandler formatting when using multiple styles
- Fixed normalization of exception codes to be always integers even for PDOException which have them as numeric strings
- Fixed normalization of SoapFault objects containing non-strings as "detail"
- Fixed json encoding across all handlers to always attempt recovery of non-UTF-8 strings instead of failing the whole encoding
- Fixed ChromePHPHandler to avoid sending more data than latest Chrome versions allow in headers (4KB down from 256KB).
- Fixed type error in BrowserConsoleHandler when the context array of log records was not associative.
### [`v2.0.0`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#200-2019-08-30)
[Compare Source](https://togithub.com/Seldaek/monolog/compare/1.27.1...2.0.0)
- BC Break: This is a major release, see [UPGRADE.md](UPGRADE.md) for details if you are coming from a 1.x release
- BC Break: Logger methods log/debug/info/notice/warning/error/critical/alert/emergency now have explicit void return types
- Added FallbackGroupHandler which works like the WhatFailureGroupHandler but stops dispatching log records as soon as one handler accepted it
- 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
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
^1.17
->3.1.0
Release Notes
Seldaek/monolog
### [`v3.1.0`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#310-2022-06-09) [Compare Source](https://togithub.com/Seldaek/monolog/compare/3.0.0...3.1.0) - Added `$datetime` parameter to `Logger::addRecord` as low level API to allow logging into the past or future ([#1682](https://togithub.com/Seldaek/monolog/issues/1682)) - Added `Logger::useLoggingLoopDetection` to allow disabling cyclic logging detection in concurrent frameworks ([#1681](https://togithub.com/Seldaek/monolog/issues/1681)) - Fixed handling of fatal errors if callPrevious is disabled in ErrorHandler ([#1670](https://togithub.com/Seldaek/monolog/issues/1670)) - Fixed interop issue by removing the need for a return type in ProcessorInterface ([#1680](https://togithub.com/Seldaek/monolog/issues/1680)) - Marked the reusable `Monolog\Test\TestCase` class as `@internal` to make sure PHPStorm does not show it above PHPUnit, you may still use it to test your own handlers/etc though ([#1677](https://togithub.com/Seldaek/monolog/issues/1677)) - Fixed RotatingFileHandler issue when the date format contained slashes ([#1671](https://togithub.com/Seldaek/monolog/issues/1671)) ### [`v3.0.0`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#300-2022-05-10) [Compare Source](https://togithub.com/Seldaek/monolog/compare/2.7.0...3.0.0) Changes from RC1 - The `Monolog\LevelName` enum does not exist anymore, use `Monolog\Level->getName()` instead. ### [`v2.7.0`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#270-2022-06-09) [Compare Source](https://togithub.com/Seldaek/monolog/compare/2.6.0...2.7.0) - Added `$datetime` parameter to `Logger::addRecord` as low level API to allow logging into the past or future ([#1682](https://togithub.com/Seldaek/monolog/issues/1682)) - Added `Logger::useLoggingLoopDetection` to allow disabling cyclic logging detection in concurrent frameworks ([#1681](https://togithub.com/Seldaek/monolog/issues/1681)) - Fixed handling of fatal errors if callPrevious is disabled in ErrorHandler ([#1670](https://togithub.com/Seldaek/monolog/issues/1670)) - Marked the reusable `Monolog\Test\TestCase` class as `@internal` to make sure PHPStorm does not show it above PHPUnit, you may still use it to test your own handlers/etc though ([#1677](https://togithub.com/Seldaek/monolog/issues/1677)) - Fixed RotatingFileHandler issue when the date format contained slashes ([#1671](https://togithub.com/Seldaek/monolog/issues/1671)) ### [`v2.6.0`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#260-2022-05-10) [Compare Source](https://togithub.com/Seldaek/monolog/compare/2.5.0...2.6.0) - Deprecated `SwiftMailerHandler`, use `SymfonyMailerHandler` instead - Added `SymfonyMailerHandler` ([#1663](https://togithub.com/Seldaek/monolog/issues/1663)) - Added ElasticSearch 8.x support to the ElasticsearchHandler ([#1662](https://togithub.com/Seldaek/monolog/issues/1662)) - Added a way to filter/modify stack traces in LineFormatter ([#1665](https://togithub.com/Seldaek/monolog/issues/1665)) - Fixed UdpSocket not being able to reopen/reconnect after close() - Fixed infinite loops if a Handler is triggering logging while handling log records ### [`v2.5.0`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#250-2022-04-08) [Compare Source](https://togithub.com/Seldaek/monolog/compare/2.4.0...2.5.0) - Added `callType` to IntrospectionProcessor ([#1612](https://togithub.com/Seldaek/monolog/issues/1612)) - Fixed AsMonologProcessor syntax to be compatible with PHP 7.2 ([#1651](https://togithub.com/Seldaek/monolog/issues/1651)) ### [`v2.4.0`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#240-2022-03-14) [Compare Source](https://togithub.com/Seldaek/monolog/compare/2.3.5...2.4.0) - Added [`Monolog\LogRecord`](src/Monolog/LogRecord.php) interface that can be used to type-hint records like `array|\Monolog\LogRecord $record` to be forward compatible with the upcoming Monolog 3 changes - Added `includeStacktraces` constructor params to LineFormatter & JsonFormatter ([#1603](https://togithub.com/Seldaek/monolog/issues/1603)) - Added `persistent`, `timeout`, `writingTimeout`, `connectionTimeout`, `chunkSize` constructor params to SocketHandler and derivatives ([#1600](https://togithub.com/Seldaek/monolog/issues/1600)) - Added `AsMonologProcessor` PHP attribute which can help autowiring / autoconfiguration of processors if frameworks / integrations decide to make use of it. This is useless when used purely with Monolog ([#1637](https://togithub.com/Seldaek/monolog/issues/1637)) - Added support for keeping native BSON types as is in MongoDBFormatter ([#1620](https://togithub.com/Seldaek/monolog/issues/1620)) - Added support for a `user_agent` key in WebProcessor, disabled by default but you can use it by configuring the $extraFields you want ([#1613](https://togithub.com/Seldaek/monolog/issues/1613)) - Added support for username/userIcon in SlackWebhookHandler ([#1617](https://togithub.com/Seldaek/monolog/issues/1617)) - Added extension points to BrowserConsoleHandler ([#1593](https://togithub.com/Seldaek/monolog/issues/1593)) - Added record message/context/extra info to exceptions thrown when a StreamHandler cannot open its stream to avoid completely losing the data logged ([#1630](https://togithub.com/Seldaek/monolog/issues/1630)) - Fixed error handler signature to accept a null $context which happens with internal PHP errors ([#1614](https://togithub.com/Seldaek/monolog/issues/1614)) - Fixed a few setter methods not returning `self` ([#1609](https://togithub.com/Seldaek/monolog/issues/1609)) - Fixed handling of records going over the max Telegram message length ([#1616](https://togithub.com/Seldaek/monolog/issues/1616)) ### [`v2.3.5`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#235-2021-10-01) [Compare Source](https://togithub.com/Seldaek/monolog/compare/2.3.4...2.3.5) - Fixed regression in StreamHandler since 2.3.3 on systems with the memory_limit set to >=20GB ([#1592](https://togithub.com/Seldaek/monolog/issues/1592)) ### [`v2.3.4`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#234-2021-09-15) [Compare Source](https://togithub.com/Seldaek/monolog/compare/2.3.3...2.3.4) - Fixed support for psr/log 3.x ([#1589](https://togithub.com/Seldaek/monolog/issues/1589)) ### [`v2.3.3`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#233-2021-09-14) [Compare Source](https://togithub.com/Seldaek/monolog/compare/2.3.2...2.3.3) - Fixed memory usage when using StreamHandler and calling stream_get_contents on the resource you passed to it ([#1578](https://togithub.com/Seldaek/monolog/issues/1578), [#1577](https://togithub.com/Seldaek/monolog/issues/1577)) - Fixed support for psr/log 2.x ([#1587](https://togithub.com/Seldaek/monolog/issues/1587)) - Fixed some type annotations ### [`v2.3.2`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#232-2021-07-23) [Compare Source](https://togithub.com/Seldaek/monolog/compare/2.3.1...2.3.2) - Fixed compatibility with PHP 7.2 - 7.4 when experiencing PCRE errors ([#1568](https://togithub.com/Seldaek/monolog/issues/1568)) ### [`v2.3.1`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#231-2021-07-14) [Compare Source](https://togithub.com/Seldaek/monolog/compare/2.3.0...2.3.1) - Fixed Utils::getClass handling of anonymous classes not being fully compatible with PHP 8 ([#1563](https://togithub.com/Seldaek/monolog/issues/1563)) - Fixed some `@inheritDoc` annotations having the wrong case ### [`v2.3.0`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#230-2021-07-05) [Compare Source](https://togithub.com/Seldaek/monolog/compare/2.2.0...2.3.0) - Added a ton of PHPStan type annotations as well as type aliases on Monolog\Logger for Record, Level and LevelName that you can import ([#1557](https://togithub.com/Seldaek/monolog/issues/1557)) - Added ability to customize date format when using JsonFormatter ([#1561](https://togithub.com/Seldaek/monolog/issues/1561)) - Fixed FilterHandler not calling reset on its internal handler when reset() is called on it ([#1531](https://togithub.com/Seldaek/monolog/issues/1531)) - Fixed SyslogUdpHandler not setting the timezone correctly on DateTimeImmutable instances ([#1540](https://togithub.com/Seldaek/monolog/issues/1540)) - Fixed StreamHandler thread safety - chunk size set to 2GB now to avoid interlacing when doing concurrent writes ([#1553](https://togithub.com/Seldaek/monolog/issues/1553)) ### [`v2.2.0`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#220-2020-12-14) [Compare Source](https://togithub.com/Seldaek/monolog/compare/2.1.1...2.2.0) - Added JSON_PARTIAL_OUTPUT_ON_ERROR to default json encoding flags, to avoid dropping entire context data or even records due to an invalid subset of it somewhere - Added setDateFormat to NormalizerFormatter (and Line/Json formatters by extension) to allow changing this after object creation - Added RedisPubSubHandler to log records to a Redis channel using PUBLISH - Added support for Elastica 7, and deprecated the $type argument of ElasticaFormatter which is not in use anymore as of Elastica 7 - Added support for millisecond write timeouts in SocketHandler, you can now pass floats to setWritingTimeout, e.g. 0.2 is 200ms - Added support for unix sockets in SyslogUdpHandler (set $port to 0 to make the $host a unix socket) - Added handleBatch support for TelegramBotHandler - Added RFC5424e extended date format including milliseconds to SyslogUdpHandler - Added support for configuring handlers with numeric level values in strings (coming from e.g. env vars) - Fixed Wildfire/FirePHP/ChromePHP handling of unicode characters - Fixed PHP 8 issues in SyslogUdpHandler - Fixed internal type error when mbstring is missing ### [`v2.1.1`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#211-2020-07-23) [Compare Source](https://togithub.com/Seldaek/monolog/compare/2.1.0...2.1.1) - Fixed removing of json encoding options - Fixed type hint of $level not accepting strings in SendGridHandler and OverflowHandler - Fixed SwiftMailerHandler not accepting email templates with an empty subject - Fixed array access on null in RavenHandler - Fixed unique_id in WebProcessor not being disableable ### [`v2.1.0`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#210-2020-05-22) [Compare Source](https://togithub.com/Seldaek/monolog/compare/2.0.2...2.1.0) - Added `JSON_INVALID_UTF8_SUBSTITUTE` to default json flags, so that invalid UTF8 characters now get converted to [�](https://en.wikipedia.org/wiki/Specials_\(Unicode_block\)#Replacement_character) instead of being converted from ISO-8859-15 to UTF8 as it was before, which was hardly a comprehensive solution - Added `$ignoreEmptyContextAndExtra` option to JsonFormatter to skip empty context/extra entirely from the output - Added `$parseMode`, `$disableWebPagePreview` and `$disableNotification` options to TelegramBotHandler - Added tentative support for PHP 8 - NormalizerFormatter::addJsonEncodeOption and removeJsonEncodeOption are now public to allow modifying default json flags - Fixed GitProcessor type error when there is no git repo present - Fixed normalization of SoapFault objects containing deeply nested objects as "detail" - Fixed support for relative paths in RotatingFileHandler ### [`v2.0.2`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#202-2019-12-20) [Compare Source](https://togithub.com/Seldaek/monolog/compare/2.0.1...2.0.2) - Fixed ElasticsearchHandler swallowing exceptions details when failing to index log records - Fixed normalization of SoapFault objects containing non-strings as "detail" in LineFormatter - Fixed formatting of resources in JsonFormatter - Fixed RedisHandler failing to use MULTI properly when passed a proxied Redis instance (e.g. in Symfony with lazy services) - Fixed FilterHandler triggering a notice when handleBatch was filtering all records passed to it - Fixed Turkish locale messing up the conversion of level names to their constant values ### [`v2.0.1`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#201-2019-11-13) [Compare Source](https://togithub.com/Seldaek/monolog/compare/2.0.0...2.0.1) - Fixed normalization of Traversables to avoid traversing them as not all of them are rewindable - Fixed setFormatter/getFormatter to forward to the nested handler in FilterHandler, FingersCrossedHandler, BufferHandler, OverflowHandler and SamplingHandler - Fixed BrowserConsoleHandler formatting when using multiple styles - Fixed normalization of exception codes to be always integers even for PDOException which have them as numeric strings - Fixed normalization of SoapFault objects containing non-strings as "detail" - Fixed json encoding across all handlers to always attempt recovery of non-UTF-8 strings instead of failing the whole encoding - Fixed ChromePHPHandler to avoid sending more data than latest Chrome versions allow in headers (4KB down from 256KB). - Fixed type error in BrowserConsoleHandler when the context array of log records was not associative. ### [`v2.0.0`](https://togithub.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#200-2019-08-30) [Compare Source](https://togithub.com/Seldaek/monolog/compare/1.27.1...2.0.0) - BC Break: This is a major release, see [UPGRADE.md](UPGRADE.md) for details if you are coming from a 1.x release - BC Break: Logger methods log/debug/info/notice/warning/error/critical/alert/emergency now have explicit void return types - Added FallbackGroupHandler which works like the WhatFailureGroupHandler but stops dispatching log records as soon as one handler accepted it - 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 SyslogUdpHandlerConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.