Skip to content

Releases: Seldaek/monolog

3.8.0

12 Nov 13:58
32e515f
Compare
Choose a tag to compare
  • Added $fileOpenMode param to StreamHandler to define a custom fopen mode to open the log file (#1913)
  • Fixed PHP 8.4 deprecation notices (#1903)
  • Added ability to extend/override IntrospectionProcessor (#1899)
  • Added $timeout param to ProcessHandler to configure the stream_select() timeout to avoid blocking too long (default is 1.0 sec) (#1916)
  • Fixed JsonFormatter batch handling to normalize records individually to make sure they look the same as if they were handled one by one - this leads to JsonFormatter::normalizeRecord now possibly returning stdClass instances instead of [] for empty context/extra data which may cause issues if you extend normalizeRecord, see #1906 (comment) (#1906)
  • Fixed StreamHandler handling of write failures so that it now closes/reopens the stream and retries the write once before failing (#1882)
  • Fixed StreamHandler error handler causing issues if a stream handler triggers an error (#1866)
  • Fixed StreamHandler::reset not closing the stream, so that it would fail to write in some cases with long running processes (#1862)
  • Fixed RotatingFileHandler issue where rotation does not happen in some long running processes (#1905)
  • Fixed JsonFormatter handling of incomplete classes (#1834)
  • Fixed RotatingFileHandler bug where rotation could sometimes not happen correctly (#1905)

Full Changelog: 3.7.0...3.8.0

2.10.0

12 Nov 13:58
5cf826f
Compare
Choose a tag to compare
  • Added $fileOpenMode to StreamHandler to define a custom fopen mode to open the log file (#1913)
  • Fixed StreamHandler handling of write failures so that it now closes/reopens the stream and retries the write once before failing (#1882)
  • Fixed StreamHandler error handler causing issues if a stream handler triggers an error (#1866)
  • Fixed JsonFormatter handling of incomplete classes (#1834)
  • Fixed RotatingFileHandler bug where rotation could sometimes not happen correctly (#1905)

Full Changelog: 2.9.3...2.10.0

3.7.0

28 Jun 09:41
f4393b6
Compare
Choose a tag to compare
  • Added NormalizerFormatter->setBasePath(...) (and JsonFormatter by extension) that allows removing the project's path from the stack trace output (47e301d)
  • Fixed JsonFormatter handling of incomplete classes (#1834)
  • Fixed private error handlers causing problems with custom StreamHandler implementations (#1866)

Full Changelog: 3.6.0...3.7.0

3.6.0

12 Apr 21:27
4b18b21
Compare
Choose a tag to compare
  • Added LineFormatter->setBasePath(...) that allows removing the project's path from the stack trace output (#1873)
  • Added $includeExtra option in PsrHandler to also use extra data to replace placeholder values in the message (#1852)
  • Added ability to customize what is a duplicated message by extending the DeduplicationHandler (#1879)
  • Added handling for using GelfMessageFormatter together with the AmqpHandler (#1869)
  • Added ability to extend GoogleCloudLoggingFormatter (#1859)
  • Fixed __toString failures in context data crashing the normalization process (#1868)
  • Fixed PHP 8.4 deprecation warnings (#1874)

Full Changelog: 3.5.0...3.6.0

2.9.3

12 Apr 21:26
a30bfe2
Compare
Choose a tag to compare
  • Fixed PHP 8.4 deprecation warnings (#1874)

3.5.0

27 Oct 15:34
c915e26
Compare
Choose a tag to compare
  • Added ability to indent stack traces in LineFormatter via e.g. indentStacktraces(' ') (#1835)
  • Added ability to configure a max level name length in LineFormatter via e.g. setMaxLevelNameLength(3) (#1850)
  • Added support for indexed arrays (i.e. [] and not {} arrays once json serialized) containing inline linebreaks in LineFormatter (#1818)
  • Added WithMonologChannel attribute for integrators to use to configure autowiring (#1847)
  • Fixed log record extra data leaking between handlers that have handler-specific processors set (#1819)
  • Fixed LogglyHandler issue with record level filtering (#1841)
  • Fixed display_errors parsing in ErrorHandler which did not support string values (#1804)
  • Fixed bug where the previous error handler would not be restored in some cases where StreamHandler fails (#1815)
  • Fixed normalization error when normalizing incomplete classes (#1833)

Full Changelog: 3.4.0...3.5.0

2.9.2

27 Oct 15:33
437cb36
Compare
Choose a tag to compare
  • Fixed display_errors parsing in ErrorHandler which did not support string values (#1804)
  • Fixed bug where the previous error handler would not be restored in some cases where StreamHandler fails (#1815)
  • Fixed normalization error when normalizing incomplete classes (#1833)

Full Changelog: 2.9.1...2.9.2

3.4.0

21 Jun 09:05
e239236
Compare
Choose a tag to compare
  • Added LoadAverageProcessor to track one of the 1, 5 or 15min load averages by @JohJohan in #1803
  • Added support for priority to the AsMonologProcessor attribute by @sudo-plz in #1797
  • Added TelegramBotHandler topic/message_thread_id support by @SamAsEnd in #1802
  • Fixed FingersCrossedHandler passthruLevel checking by @BrianMwit in #1801
  • Fixed support of yearly and monthly rotation log file to rotate only once a month/year by @liutaot in #1805
  • Fixed TestHandler method docs by @dmitryuk in #1794
  • Fixed handling of falsey display_errors string values (#1804)

Full Changelog: 3.3.1...3.4.0

3.3.1

06 Feb 13:47
9b5daea
Compare
Choose a tag to compare
  • Fixed Logger not being serializable anymore (#1792)

3.3.0

06 Feb 13:17
852643b
Compare
Choose a tag to compare
  • Deprecated FlowdockHandler & Formatter as the flowdock service was shutdown (#1748)
  • Added ClosureContextProcessor to allow delaying the creation of context data by setting a Closure in context which is called when the log record is used (#1745)
  • Added an ElasticsearchHandler option to set the op_type to create instead of the default index (#1766)
  • Added support for enum context values in PsrLogMessageProcessor (#1773)
  • Added graylog2/gelf-php 2.x support (#1747)
  • Improved BrowserConsoleHandler logging to use more appropriate methods than just console.log in the browser (#1739)
  • Fixed GitProcessor not filtering correctly based on Level (#1749)
  • Fixed WhatFailureGroupHandler not catching errors happening inside close() (#1791)
  • Fixed datetime field in GoogleCloudLoggingFormatter (#1758)
  • Fixed infinite loop detection within Fibers (#1753)
  • Fixed AmqpHandler->setExtraAttributes not working with buffering handler wrappers (#1781)