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.
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.
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
- Loggerconfigured by · A logger is a software component or interface that records or emits information about program execution, such as diagnostic messages, events, or measured data.
- monitoringpart of · Monitoring is the ongoing observation and measurement of a system’s behavior, state, or performance to assess its operation and detect changes or problems.
- filtering ruleused by · A filtering rule is a logging configuration rule that determines whether messages meeting specified provider, category, and severity criteria are written.
- logging leveluses · A logging level is a severity or diagnostic-detail classification that helps determine which log events a logging system records or emits.
- logging serviceused by · A logging service is a system that receives, processes, aggregates, indexes, transports, or stores log records from applications or other systems.
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.

