Repository navigation
- Security: Fixed
LineFormatterreplacing placeholders found inside logged values, so a message or context value containing e.g.%context.could pull other fields into the line or strip everything up to the next%, often the whole context (#2099) - Security: Fixed
RedactingFormatternot redacting sensitive keys inside objects (public properties orjsonSerialize()output), nor secrets written with unicode/slash JSON escaping or with their line breaks replaced byLineFormatter(#2100) - Security: Fixed
SyslogFormatterwriting line breaks in messages as-is, letting a message start what line-based consumers read as a second record, they are now replaced with spaces unlessincludeStacktraces()is enabled (#2098) - BC Warning:
SyslogUdpHandlernow writes RFC 3164 timestamps in the record's timezone (theLogger's) instead of UTC, as receivers read them as local time, set theLoggertimezone to UTC to keep the previous output (#2101) - Added Psalm taint analysis annotations marking the
StreamHandlerpath and theSocketHandlerconnection string as sinks (#2086) - Fixed
SocketHandlerthrowing "Write timed-out" on every write after a single failed one until the process restarted, it now reconnects (#2089) - Fixed
RotatingFileHandlertreating[,*and?in the log path as glob characters, which kept old files from being pruned and could delete matching files in another directory (#2094) - Fixed
RotatingFileHandlerhourly date formats only rotating at midnight, forFILE_PER_HOUR, for variants likeYmdH, and after switching formats withsetFilenameFormat()(#2076, #2096) - Fixed
JsonFormatterdropping the trailing newline of every following record once formatting a batch had failed, which glued log lines together in long-running processes (#2083) - Fixed
JsonFormatterencodingINFandNaNas0(#2078) - Fixed
HtmlFormatterdropping the message, context keys or values that are not valid UTF-8, e.g. in the emails of mail handlers (#2095) - Fixed
FilterHandlernot applying its own processors to records passed in a batch, e.g. when aBufferHandlerorFingersCrossedHandlerflushes into it (#2079) - Fixed
ChromePHPHandler::handleBatch()ignoring the handler level and sending every record (#2077) - Fixed
PsrLogMessageProcessorignoring the given date format for dates that have__toString(), such as Monolog's own and Carbon dates (#2097) - Fixed
SyslogUdpHandlerzero-padding the day in RFC 3164 timestamps (Aug 07instead ofAug 7) (#2084)
Full Changelog: 3.12.1...3.13.0