Files
Ghassen kefi 46a4594cfc feat(log): allow custom loggers to keep structured context data
ILogFactory::getCustomPsrLogger() gets an optional $structuredContext
flag. When set, array values of the log context are written as nested
data in the log entry instead of being encoded to a JSON string, so
consumers can read them as fields. Values used as message placeholders
are still converted to strings, and loggers without the flag, including
nextcloud.log, are unchanged.

Message interpolation now only replaces placeholders that occur in the
message, so array values that are not placeholders are never cast to
strings.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Ghassen kefi <ghassen.kefi.dev@gmail.com>
2026-10-13 14:41:54 +02:00
..