Skip to content

docs: document the log context and remove the array messages - #189

Merged
armanist merged 1 commit into
stagingfrom
docs/logger-context
Nov 22, 2026
Merged

armanist merged 1 commit into
stagingfrom
docs/logger-context

Conversation

@armanist

Copy link
Copy Markdown
Collaborator

For #155 (not closed here: merges into staging close nothing).

Framework change: quantum-php/framework#613 (PR quantum-php/framework#702).

Summary

  • Logger adapters, "File output format": the context is written after the message as one line of JSON, with an example; how a trace, an exception, a Stringable value, invalid UTF-8 and a value that cannot be converted are written; leave secrets out of the context.
  • Logger contracts: "File logging writes the context" replaces "File logging uses only one special context key"; the message is string|Stringable, an array message throws a TypeError.
  • Logger usage, helpers, overview and architecture: the array message promises are removed, the structured payload example puts the data in the context.
  • Upgrade guide, "Upgrading from 3.1 to 3.2": a new section "Log lines carry the context"; "Check the upgrade" becomes section 9.

Changed paths

  • v3.0/packages/logger/adapters.md, contracts.md, architecture.md, overview.md, helpers.md, usage.md
  • v3.0/upgrade-guide.md

SUMMARY.md is unchanged: no pages were added, moved or removed.

@armanist
armanist merged commit 8afea23 into staging Nov 22, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant