Dela via


HttpLoggingServiceExtensions Class

Definition

Extension methods to register the HTTP logging feature within the service.

public static class HttpLoggingServiceExtensions
type HttpLoggingServiceExtensions = class
Public Module HttpLoggingServiceExtensions
Inheritance
HttpLoggingServiceExtensions

Methods

AddHttpLogEnricher<T>(IServiceCollection)

Adds an enricher instance of T to the IServiceCollection to enrich incoming HTTP requests logs.

AddHttpLogging(IServiceCollection, Action<LoggingOptions>)

Adds components for incoming HTTP requests logging into IServiceCollection.

AddHttpLogging(IServiceCollection, IConfigurationSection)

Adds components for incoming HTTP requests logging into IServiceCollection.

AddHttpLogging(IServiceCollection)

Adds components for incoming HTTP requests logging into IServiceCollection.

UseHttpLoggingMiddleware(IApplicationBuilder)

Registers incoming HTTP request logging middleware into IApplicationBuilder.

Applies to