php-samples icon indicating copy to clipboard operation
php-samples copied to clipboard

Update dependency monolog/monolog to v3

Open renovate[bot] opened this issue 3 years ago • 0 comments

Mend Renovate

This PR contains the following updates:

Package Type Update Change
monolog/monolog require-dev major ^1.17 -> 3.1.0

Release Notes

Seldaek/monolog

v3.1.0

Compare Source

  • Added $datetime parameter to Logger::addRecord as low level API to allow logging into the past or future (#​1682)
    • Added Logger::useLoggingLoopDetection to allow disabling cyclic logging detection in concurrent frameworks (#​1681)
    • Fixed handling of fatal errors if callPrevious is disabled in ErrorHandler (#​1670)
    • Fixed interop issue by removing the need for a return type in ProcessorInterface (#​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)
    • Fixed RotatingFileHandler issue when the date format contained slashes (#​1671)

v3.0.0

Compare Source

Changes from RC1

  • The Monolog\LevelName enum does not exist anymore, use Monolog\Level->getName() instead.

v2.7.0

Compare Source

  • Added $datetime parameter to Logger::addRecord as low level API to allow logging into the past or future (#​1682)
    • Added Logger::useLoggingLoopDetection to allow disabling cyclic logging detection in concurrent frameworks (#​1681)
    • Fixed handling of fatal errors if callPrevious is disabled in ErrorHandler (#​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)
    • Fixed RotatingFileHandler issue when the date format contained slashes (#​1671)

v2.6.0

Compare Source

  • Deprecated SwiftMailerHandler, use SymfonyMailerHandler instead
    • Added SymfonyMailerHandler (#​1663)
    • Added ElasticSearch 8.x support to the ElasticsearchHandler (#​1662)
    • Added a way to filter/modify stack traces in LineFormatter (#​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

Compare Source

  • Added callType to IntrospectionProcessor (#​1612)
    • Fixed AsMonologProcessor syntax to be compatible with PHP 7.2 (#​1651)

v2.4.0

Compare Source

  • Added Monolog\LogRecord 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)
    • Added persistent, timeout, writingTimeout, connectionTimeout, chunkSize constructor params to SocketHandler and derivatives (#​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)
    • Added support for keeping native BSON types as is in MongoDBFormatter (#​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)
    • Added support for username/userIcon in SlackWebhookHandler (#​1617)
    • Added extension points to BrowserConsoleHandler (#​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)
    • Fixed error handler signature to accept a null $context which happens with internal PHP errors (#​1614)
    • Fixed a few setter methods not returning self (#​1609)
    • Fixed handling of records going over the max Telegram message length (#​1616)

v2.3.5

Compare Source

  • Fixed regression in StreamHandler since 2.3.3 on systems with the memory_limit set to >=20GB (#​1592)

v2.3.4

Compare Source

  • Fixed support for psr/log 3.x (#​1589)

v2.3.3

Compare Source

  • Fixed memory usage when using StreamHandler and calling stream_get_contents on the resource you passed to it (#​1578, #​1577)
    • Fixed support for psr/log 2.x (#​1587)
    • Fixed some type annotations

v2.3.2

Compare Source

  • Fixed compatibility with PHP 7.2 - 7.4 when experiencing PCRE errors (#​1568)

v2.3.1

Compare Source

  • Fixed Utils::getClass handling of anonymous classes not being fully compatible with PHP 8 (#​1563)
    • Fixed some @inheritDoc annotations having the wrong case

v2.3.0

Compare Source

  • 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)
    • Added ability to customize date format when using JsonFormatter (#​1561)
    • Fixed FilterHandler not calling reset on its internal handler when reset() is called on it (#​1531)
    • Fixed SyslogUdpHandler not setting the timezone correctly on DateTimeImmutable instances (#​1540)
    • Fixed StreamHandler thread safety - chunk size set to 2GB now to avoid interlacing when doing concurrent writes (#​1553)

v2.2.0

Compare Source

  • 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

Compare Source

  • 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

Compare Source

  • Added JSON_INVALID_UTF8_SUBSTITUTE to default json flags, so that invalid UTF8 characters now get converted to 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

Compare Source

  • 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

Compare Source

  • 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

Compare Source

  • BC Break: This is a major release, see 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.

renovate[bot] avatar Jun 01 '22 00:06 renovate[bot]