liveBook · Manning

Structured logging

Structured logging records events as machine-readable fields organized according to a consistent structure or schema.

How 2 Manning books explain it

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.

Read how Rust Web Development explains structured logging →

Also covered in

What to know first

Related concepts

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.