Logging
Logging is the practice of recording events and diagnostic information produced during software or system activity for later inspection, analysis, or troubleshooting.
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.
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
- failover transport connectorproduced by · An ActiveMQ transport that reconnects clients and tries alternative broker addresses when a connection fails.
- TCPproduced by · TCP (Transmission Control Protocol) is a connection-oriented transport-layer protocol that provides reliable, ordered delivery of a byte stream between network endpoints.
- structured loggingincludes · Structured logging records events as machine-readable fields organized according to a consistent structure or schema.
- logproduces · A log is a time-ordered record of events, messages, or activity generated by a system or process.
- breakpointused by · A breakpoint is a designated program location at which a debugger pauses execution so the program’s state can be inspected.
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.

