liveBook · Manning

Logging

Logging is the practice of recording events and diagnostic information produced during software or system activity for later inspection, analysis, or troubleshooting.

How 2 Manning books explain it

Rust Web Development

Logging is the recording of program events and operational information for later inspection.

How it is used
Instruments a Rust web service to inspect requests, failures, and production behavior.
How deep it goes
Walks through logger initialization, level filtering, file redirection, and configurable appenders, then applies error logging to database failures.
Examples
Uses startup messages, a request to a questions endpoint, and a database constraint failure to illustrate logs.
What you can do after
Apply logging via log and env_logger, configure output with log4rs, and record database errors with tracing.

Read how Rust Web Development explains logging →

Troubleshooting Java: Read, debug, and optimize JVM applications

Logging is the recording of events or information produced during a program's execution.

How it is used
Uses recorded events to reconstruct application behavior and investigate problems or security breaches.
How deep it goes
Explains message fields, safe logging practices, stack-trace inspection, and temporary execution timing through worked examples.
Examples
Uses a digit-extraction call chain and a timed product-repository query to illustrate investigation techniques.
What you can do after
Diagnose application behavior by interpreting logs, tracing method callers, and timing suspect operations.

Read how Troubleshooting Java: Read, debug, and optimize JVM applications explains logging →

Also covered in

Related concepts

Questions about logging

What is logging?

Logging is the practice of recording events and diagnostic information produced during software or system activity for later inspection, analysis, or troubleshooting.

Which Manning books explain logging?

Rust Web Development and Troubleshooting Java: Read, debug, and optimize JVM applications.

What kinds of logging are there?

Kinds of logging include semistructured logging and structured logging.

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.