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.
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.
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.
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
- Troubleshooting Java: Read, debug, and optimize JVM applications
- Functional Design and Architecture: Examples in Haskell
- The Well-Grounded Python Developer: How the pros use Python and Flask
- Elixir in Action, Third Edition
- Pro ASP.NET Core 7, Tenth Edition
- The Art of Unit Testing 3e
- Functional Programming in C#, Second Edition
- Unit Testing Principles, Practices, and Patterns
What to know first
- dependency injectionDependency injection is a software design technique in which a component receives its dependencies from outside rather than creating or locating them internally.
- monitoringMonitoring is the ongoing observation and measurement of a system or process to assess its behavior or condition and detect changes, failures, or other problems.
- dependencyA dependency is a component, resource, or prerequisite that another software component or activity relies on to function, build, or proceed.
Related concepts
- appenderuses · An appender is a logging component that directs emitted log events or messages to a configured output destination.
- dependency injectionused by · Dependency injection is a software design technique in which a component receives its dependencies from outside rather than creating or locating them internally.
- ILoggerFactoryproduced by · ILoggerFactory is a .NET logging abstraction that creates category-specific loggers and manages logging providers.
- logging levelconfigured by · A logging level is a severity or diagnostic-detail classification that helps determine which log events a logging system records or emits.
- ILoggerProviderused by · ILoggerProvider is a .NET logging interface that creates logger instances associated with a logging destination or implementation.
- log categoryconfigures · A log category is a named identifier or classification associated with log messages that identifies their source or type and can determine logging behavior.
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.




