ILoggerProvider
ILoggerProvider is a .NET logging interface that creates logger instances associated with a logging destination or implementation.
ASP.NET Core in Action, 3e
ILoggerProvider is a logging abstraction that creates logger instances configured to write messages to a particular destination or system.
- How it is used
- Routes ASP.NET Core log messages to configured destinations without changing the code that writes them.
- How deep it goes
- Explains provider creation through ILoggerFactory, registration, filtering, and structured output, but does not implement a provider.
- Examples
- Uses console and file destinations, a third-party AddFile() registration, and provider-specific filtering rules.
- What you can do after
- Operate/configure it with WebApplicationBuilder.Logging and filtering configuration to add destinations and control their verbosity.
Read how ASP.NET Core in Action, 3e explains ILoggerProvider →
Building Web APIs with ASP.NET Core
A structured logging provider is a logging component that emits events as records with defined fields suitable for structured storage and querying.
- How it is used
- Routes ILogger events to displays or stores, including structured storage for queryable API logs.
- How deep it goes
- Defines provider behavior and walks through Serilog SQL Server configuration, but does not implement a provider interface from scratch.
- Examples
- Uses Console and Debug outputs and a Serilog SQL Server sink that creates a LogEvents table.
- What you can do after
- Operate/configure it to store API events in SQL Server while retaining registered Console and Debug providers.
Read how Building Web APIs with ASP.NET Core explains ILoggerProvider →
Related concepts
- Loggeruses · A logger is a software component or interface that records or emits runtime information, such as diagnostic messages, events, or metrics.
- console logging providerincludes · A console logging provider is a software component that writes application log messages to the console or standard output stream.
- ClearProvidersconfigured by · ClearProviders is an ASP.NET Core logging-builder method that removes all currently configured logging providers.
- ILoggerFactoryused by · ILoggerFactory is a .NET logging abstraction that creates category-specific loggers and manages logging providers.
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.

