Skip to content

Releases: yiisoft/log

Version 2.2.1

22 Mar 16:34
Immutable release. Only release title and notes can be modified.
2.2.1
e98e881

Choose a tag to compare

  • Chg #130, #133: Changed Message::parse() to conform to PSR-3 (@technicated, @vjik)
  • Enh #132: Add benchmarks, improve performance of Message::parse() (@samdark)
  • Enh #135: Add validation for $traceLevel in SystemContextProvider to ensure values are greater than or equal to zero (@rekmixa)
  • Enh #137: Explicitly import classes, functions, and constants in "use" section (@mspirkov)
  • Enh #138: Moved the final log flush from register_shutdown_function() to the Logger::__destruct() method (@olegbaturin)
  • Bug #130: Updated Message::parse() to correctly support multiple placeholders (@technicated)

Full changelog

Version 2.2.0

13 Dec 10:17
Immutable release. Only release title and notes can be modified.
2.2.0
8c27754

Choose a tag to compare

  • New #125: Add optional $levels parameter to Target constructor allowing log level filtering at instantiation (@samdark)
  • Chg #126: Add ext-psr to conflict section in composer.json (@samdark)

Full changelog

Version 2.1.1

03 Jun 11:35
2.1.1
5d561e9

Choose a tag to compare

Version 2.1.0

03 Jul 10:14
2.1.0
9d54995

Choose a tag to compare

  • New #104: Add new static methods Logger::assertLevelIsValid(), Logger::assertLevelIsString() and
    Logger::assertLevelIsSupported() (@vjik)
  • New #108: Support of nested values in message templates' variables, e. g. {foo.bar} (@vjik)
  • New #109, #113, #116: Add context providers (@vjik)
  • New #111: Add DateTime and DateTimeImmutable support as time in log context (@vjik)
  • New #112: Add Message::category() method and Message::DEFAULT_CATEGORY constant, deprecate
    CategoryFilter::DEFAULT in favor it (@vjik)
  • New #113: Add Message::trace() method (@vjik)
  • New #114: Add Message::time() method (@vjik)
  • Chg #104: Deprecate method Logger::validateLevel() (@vjik)
  • Chg #109: Deprecate Logger methods setTraceLevel() and setExcludedTracePaths() in favor of context provider
    usage (@vjik)
  • Chg #116: Deprecate methods setCommonContext() and getCommonContext() in Target class (@vjik)
  • Chg #118: Replace gettype() to get_debug_type() in exception messages generation (@vjik)
  • Bug #84: Change the type of the $level parameter in the Message constructor to string (@dood-)
  • Bug #89: Fix error on parse messages, that contains variables that cannot cast to a string (@vjik)
  • Bug #98: Fix error on formatting trace, when it doesn't contain "file" and "line" (@vjik)