liveBook · Manning

Logger

Also called ILogger

A logger is a software component or interface that records or emits information about program execution, such as diagnostic messages, events, or measured data.

How 5 Manning books explain it

Learn Go with Pocket-Sized Projects

A logger is a software component that records application messages, typically with severity levels and formatted output.

How it is used
Uses a logger to record program events at configurable severity thresholds without unconditional debugging prints.
How deep it goes
Implements a three-level logger with a constructor, filtering, shared formatting, configurable output, and tests; notes a call-order testing limitation.
Examples
Uses a count-debugging scenario and a test writer that captures messages for threshold-based assertions.
What you can do after
Builds a logger from scratch with level-specific methods and tests its output using a writer.

Read how Learn Go with Pocket-Sized Projects explains Logger →

ASP.NET Core in Action, 3e

ILogger is a .NET logging abstraction whose methods record application diagnostic messages through configured providers.

How it is used
Records diagnostic events so applications can diagnose errors and control logging verbosity across development and production.
How deep it goes
Explains injection, providers, levels, categories, templates, and structured values, while deferring detailed filtering and provider configuration.
Examples
Uses a Razor Page recipe count, console provider setup, custom categories, and a generated LoggerMessage method.
What you can do after
Apply it via ASP.NET Core dependency injection to write categorized, leveled, structured messages through configured providers.

Read how ASP.NET Core in Action, 3e explains Logger →

Python How-To

A logger is an object in a logging system that creates log records and applies a severity threshold before forwarding them to handlers.

How it is used
Uses loggers to record application events for later inspection and provide console feedback during development.
How deep it goes
Walks through logger retrieval, handler attachment, severity filtering, and duplicate-handler challenges.
Examples
Uses a task-removal warning, file and console output, and a duplicate-handler exercise.
What you can do after
Operate and configure Python loggers with named retrieval, handlers, and severity thresholds.

Read how Python How-To explains Logger →

Building Web APIs with ASP.NET Core

ILogger is a .NET logging abstraction for writing categorized diagnostic messages.

How it is used
Records categorized application events and activities through logging providers.
How deep it goes
Explains generic categories, dependency injection, log levels, event IDs, and message templates through controller examples.
Examples
Uses a board-game controller log entry, event ID constants, named placeholders, and Output-window results.
What you can do after
Apply it via ASP.NET Core dependency injection to record categorized controller events and inspect their output.

Read how Building Web APIs with ASP.NET Core explains Logger →

Troubleshooting Java, Second Edition

A logger is a Log4j component or object that accepts application messages at specified severity levels.

How it is used
Routes application events through severity filtering during behavior auditing and execution investigation.
How deep it goes
Explains creation, severity methods, configuration, appenders, and formatters, but does not descend into framework internals.
Examples
Uses a StringDigitExtractor, Log4j API calls, log4j2.xml configuration, console output, and adjustable info/debug thresholds.
What you can do after
Apply it via Log4j to emit severity-specific messages and configure their selection, destination, and formatting.

Read how Troubleshooting Java, Second Edition explains Logger →

Also covered in

What to know first

Related concepts

Questions about Logger

What is Logger?

A logger is a software component or interface that records or emits information about program execution, such as diagnostic messages, events, or measured data.

Which Manning books explain Logger?

Learn Go with Pocket-Sized Projects, ASP.NET Core in Action, 3e, Python How-To, Building Web APIs with ASP.NET Core and Troubleshooting Java, Second Edition.

What should I know before learning Logger?

Manning books that teach Logger usually introduce dependency injection, Java Logging API, monitoring and dependency first.

What is Logger also called?

Logger is also called ILogger.

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.