Monolog v3.10.0 Release Notes

Release Date: 2026-01-02 // 7 months ago
    • ➕ Added automatic directory cleanup in RotatingFileHandler (#2000)
    • ➕ Added timezone-aware file rotation to RotatingFileHandler (#1982)
    • ➕ Added support for mongodb/mongodb 2.0+ (#1998)
    • ➕ Added NoDiscard attribute to TestHandler methods to ensure the result is used (#2013)
    • Fixed JsonFormatter crashing if __toString throws while normalizing data (#1968)
    • 🛠 Fixed PHP 8.5 deprecation warnings (#1997, #2009)
    • 🛠 Fixed DeduplicatingHandler collecting duplicate logs if the file cannot be locked (2e97231)
    • 🛠 Fixed GelfMessageFormatter to use integers instead of bool for gelf 1.1 support (#1973)
    • 🛠 Fixed empty stack traces being output anyway (#1979)
    • 🛠 Fixed StreamHandler not reopening the file if the inode changed (#1963)
    • 🛠 Fixed TelegramBotHandler sending empty messages (#1992)
    • 🛠 Fixed file paths in stack traces containing backslashes on windows, always using / now to unify logs (#1980)
    • 🛠 Fixed RotatingFileHandler unlink errors not being suppressed correctly (#1999)

    Full Changelog : 3.9.0...3.10.0


Previous changes from v3.9.0

    • ⚠ BC Warning: Fixed SendGridHandler to use the V3 API as V2 is now shut down, but this requires a new API key (#1952)
    • ✅ Deprecated Monolog\Test\TestCase in favor of Monolog\Test\MonologTestCase (#1953)
    • ➕ Added extension point for NativeMailerHandler::mail (#1948)
    • ➕ Added setHandler method to BufferHandler to modify the nested handler at runtime (#1946)
    • 🛠 Fixed date format in ElasticsearchFormatter to use +00:00 vs +0000 tz identifiers (#1942)
    • 🛠 Fixed GelfMessageFormatter handling numeric context/extra keys (#1932)

    Full Changelog : 3.8.1...3.9.0