liveBook · Manning

Log category

A log category is a named identifier or classification associated with log messages that identifies their source or type and can determine logging behavior.

How 2 Manning books explain it

ASP.NET Core in Action, 3e

A log category is a string identifier associated with a logger that identifies the component or type creating a log message.

How it is used
Identifies the component creating each message and supports filtering application or framework logs.
How deep it goes
Explains default type-based categories, arbitrary names, logger creation, and provider filtering without descending into provider implementation.
Examples
Uses RecipeService, ILoggerFactory.CreateLogger, ILogger<T>, namespaces, and appsettings.json filtering rules.
What you can do after
Configure it via ASP.NET Core logging APIs to identify components and control output by category.

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

Pro ASP.NET Core 7, Tenth Edition

A logging category is a string or type-derived identifier associated with log messages and used to identify their source component and select logging configuration.

How it is used
Uses component identifiers to group messages and select minimum logging levels during ASP.NET Core request processing and startup.
How deep it goes
Explains type-derived and string categories, hierarchical matching, defaults, and targeted filters, but not logging-provider internals.
Examples
Uses Population, Platform.Population, Platform, Microsoft.AspNetCore.Routing, and Pipeline to demonstrate derived, hierarchical, and explicit categories.
What you can do after
Operate/configure logging filters that increase, reduce, or disable diagnostic detail for selected application components.

Read how Pro ASP.NET Core 7, Tenth Edition explains log category →

Related concepts

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.