Structured logging
Structured logging records events as machine-readable fields organized according to a consistent structure or schema.
Effective Behavior-Driven Development
Logging that organizes entries to convey meaningful structure, such as relationships between nested execution steps.
- How it is used
- Supports test-failure diagnosis and demonstrates which automation actions were performed.
- How deep it goes
- Shows how to wrap test-action execution in a logging scope and indent nested entries.
- Examples
- Uses a customer login test with nested REST API request and response logs.
- What you can do after
- Diagnose test failures by tracing automation actions and nested application calls.
Read how Effective Behavior-Driven Development explains structured logging →
Rust Web Development
Structured logging is a technique for recording events as machine-readable fields rather than unstructured text.
- How it is used
- Records useful service events in parseable JSON for log collection and investigation.
- How deep it goes
- Configures JSON encoders and request IDs, while noting that formatted HTTP details remain embedded in a message string.
- Examples
- Uses a questions endpoint, JSON console and file logs, HTTP request details, and UUIDs to associate related events.
- What you can do after
- Diagnose service problems by configuring JSON output and associating application events with a request ID.
Also covered in
- Build High Value Software SystemsIn early access (MEAP)
- Embedded Software with RustIn early access (MEAP)
- Grokking Software ArchitectureIn early access (MEAP)
What to know first
- observabilityObservability is the ability to infer a system’s internal state and behavior from its externally available outputs, such as logs, metrics, and traces.
Related concepts
- loggingkind of · Logging is the practice of recording events and diagnostic information produced during software or system activity for later inspection, analysis, or troubleshooting.
- request idaddressed by · A request ID is an identifier associated with a request to distinguish or correlate it across processing and diagnostic records.
- defmtimplements · defmt is a binary logging framework for no_std firmware that stores format strings in the binary and defers message reconstruction to a host decoder.
- output formatproduces · An output format is a specification of the structure or representation in which a result or response is expressed.
Questions about structured logging
What is structured logging?
Structured logging records events as machine-readable fields organized according to a consistent structure or schema.
Which Manning books explain structured logging?
Effective Behavior-Driven Development and Rust Web Development.
What should I know before learning structured logging?
Manning books that teach structured logging usually introduce observability first.
What is structured logging a kind of?
Structured logging is a kind of logging. Logging is the practice of recording events and diagnostic information produced during software or system activity for later inspection, analysis, or troubleshooting.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

