ILoggingBuilder ILoggingBuilder ILoggingBuilder ILoggingBuilder Interface

Definition

An interface for configuring logging providers.

public interface class ILoggingBuilder
public interface ILoggingBuilder
type ILoggingBuilder = interface
Public Interface ILoggingBuilder

Properties

Services Services Services Services

Gets the IServiceCollection where Logging services are configured.

Extension Methods

AddAzureWebAppDiagnostics(ILoggingBuilder) AddAzureWebAppDiagnostics(ILoggingBuilder) AddAzureWebAppDiagnostics(ILoggingBuilder) AddAzureWebAppDiagnostics(ILoggingBuilder)

Adds an Azure Web Apps diagnostics logger.

AddConfiguration(ILoggingBuilder) AddConfiguration(ILoggingBuilder) AddConfiguration(ILoggingBuilder) AddConfiguration(ILoggingBuilder)

Adds services required to consume ILoggerProviderConfigurationFactory or ILoggerProviderConfiguration<T>

AddConsole(ILoggingBuilder) AddConsole(ILoggingBuilder) AddConsole(ILoggingBuilder) AddConsole(ILoggingBuilder)

Adds a console logger named 'Console' to the factory.

AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>) AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>) AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>) AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>)

Adds a console logger named 'Console' to the factory.

AddDebug(ILoggingBuilder) AddDebug(ILoggingBuilder) AddDebug(ILoggingBuilder) AddDebug(ILoggingBuilder)

Adds a debug logger named 'Debug' to the factory.

AddEventLog(ILoggingBuilder) AddEventLog(ILoggingBuilder) AddEventLog(ILoggingBuilder) AddEventLog(ILoggingBuilder)

Adds an event logger named 'EventLog' to the factory.

AddEventLog(ILoggingBuilder, EventLogSettings) AddEventLog(ILoggingBuilder, EventLogSettings) AddEventLog(ILoggingBuilder, EventLogSettings) AddEventLog(ILoggingBuilder, EventLogSettings)

Adds an event logger. Use settings to enable logging for specific LogLevels.

AddEventLog(ILoggingBuilder, Action<EventLogSettings>) AddEventLog(ILoggingBuilder, Action<EventLogSettings>) AddEventLog(ILoggingBuilder, Action<EventLogSettings>) AddEventLog(ILoggingBuilder, Action<EventLogSettings>)

Adds an event logger. Use configure to enable logging for specific LogLevels.

AddEventSourceLogger(ILoggingBuilder) AddEventSourceLogger(ILoggingBuilder) AddEventSourceLogger(ILoggingBuilder) AddEventSourceLogger(ILoggingBuilder)

Adds an event logger named 'EventSource' to the factory.

AddFilter(ILoggingBuilder, Func<LogLevel,Boolean>) AddFilter(ILoggingBuilder, Func<LogLevel,Boolean>) AddFilter(ILoggingBuilder, Func<LogLevel,Boolean>) AddFilter(ILoggingBuilder, Func<LogLevel,Boolean>)

Adds a log filter to the factory.

AddFilter(ILoggingBuilder, Func<String,LogLevel,Boolean>) AddFilter(ILoggingBuilder, Func<String,LogLevel,Boolean>) AddFilter(ILoggingBuilder, Func<String,LogLevel,Boolean>) AddFilter(ILoggingBuilder, Func<String,LogLevel,Boolean>)

Adds a log filter to the factory.

AddFilter(ILoggingBuilder, Func<String,String,LogLevel,Boolean>) AddFilter(ILoggingBuilder, Func<String,String,LogLevel,Boolean>) AddFilter(ILoggingBuilder, Func<String,String,LogLevel,Boolean>) AddFilter(ILoggingBuilder, Func<String,String,LogLevel,Boolean>)

Adds a log filter to the factory.

AddFilter(ILoggingBuilder, String, LogLevel) AddFilter(ILoggingBuilder, String, LogLevel) AddFilter(ILoggingBuilder, String, LogLevel) AddFilter(ILoggingBuilder, String, LogLevel)

Adds a log filter to the factory.

AddFilter(ILoggingBuilder, String, Func<LogLevel,Boolean>) AddFilter(ILoggingBuilder, String, Func<LogLevel,Boolean>) AddFilter(ILoggingBuilder, String, Func<LogLevel,Boolean>) AddFilter(ILoggingBuilder, String, Func<LogLevel,Boolean>)

Adds a log filter to the factory.

AddFilter<T>(ILoggingBuilder, Func<LogLevel,Boolean>) AddFilter<T>(ILoggingBuilder, Func<LogLevel,Boolean>) AddFilter<T>(ILoggingBuilder, Func<LogLevel,Boolean>) AddFilter<T>(ILoggingBuilder, Func<LogLevel,Boolean>)

Adds a log filter for the given ILoggerProvider.

AddFilter<T>(ILoggingBuilder, Func<String,LogLevel,Boolean>) AddFilter<T>(ILoggingBuilder, Func<String,LogLevel,Boolean>) AddFilter<T>(ILoggingBuilder, Func<String,LogLevel,Boolean>) AddFilter<T>(ILoggingBuilder, Func<String,LogLevel,Boolean>)

Adds a log filter for the given ILoggerProvider.

AddFilter<T>(ILoggingBuilder, String, LogLevel) AddFilter<T>(ILoggingBuilder, String, LogLevel) AddFilter<T>(ILoggingBuilder, String, LogLevel) AddFilter<T>(ILoggingBuilder, String, LogLevel)

Adds a log filter for the given ILoggerProvider.

AddFilter<T>(ILoggingBuilder, String, Func<LogLevel,Boolean>) AddFilter<T>(ILoggingBuilder, String, Func<LogLevel,Boolean>) AddFilter<T>(ILoggingBuilder, String, Func<LogLevel,Boolean>) AddFilter<T>(ILoggingBuilder, String, Func<LogLevel,Boolean>)

Adds a log filter for the given ILoggerProvider.

AddConfiguration(ILoggingBuilder, IConfiguration) AddConfiguration(ILoggingBuilder, IConfiguration) AddConfiguration(ILoggingBuilder, IConfiguration) AddConfiguration(ILoggingBuilder, IConfiguration)

Configures LoggerFilterOptions from an instance of IConfiguration.

AddProvider(ILoggingBuilder, ILoggerProvider) AddProvider(ILoggingBuilder, ILoggerProvider) AddProvider(ILoggingBuilder, ILoggerProvider) AddProvider(ILoggingBuilder, ILoggerProvider)

Adds the given ILoggerProvider to the ILoggingBuilder

ClearProviders(ILoggingBuilder) ClearProviders(ILoggingBuilder) ClearProviders(ILoggingBuilder) ClearProviders(ILoggingBuilder)

Removes all ILoggerProviders from builder.

SetMinimumLevel(ILoggingBuilder, LogLevel) SetMinimumLevel(ILoggingBuilder, LogLevel) SetMinimumLevel(ILoggingBuilder, LogLevel) SetMinimumLevel(ILoggingBuilder, LogLevel)

Sets a minimum LogLevel requirement for log messages to be logged.

AddTraceSource(ILoggingBuilder, SourceSwitch) AddTraceSource(ILoggingBuilder, SourceSwitch) AddTraceSource(ILoggingBuilder, SourceSwitch) AddTraceSource(ILoggingBuilder, SourceSwitch)

Adds a TraceSource logger named 'TraceSource' to the factory.

AddTraceSource(ILoggingBuilder, SourceSwitch, TraceListener) AddTraceSource(ILoggingBuilder, SourceSwitch, TraceListener) AddTraceSource(ILoggingBuilder, SourceSwitch, TraceListener) AddTraceSource(ILoggingBuilder, SourceSwitch, TraceListener)

Adds a TraceSource logger named 'TraceSource' to the factory.

AddTraceSource(ILoggingBuilder, String) AddTraceSource(ILoggingBuilder, String) AddTraceSource(ILoggingBuilder, String) AddTraceSource(ILoggingBuilder, String)

Adds a TraceSource logger named 'TraceSource' to the factory.

AddTraceSource(ILoggingBuilder, String, TraceListener) AddTraceSource(ILoggingBuilder, String, TraceListener) AddTraceSource(ILoggingBuilder, String, TraceListener) AddTraceSource(ILoggingBuilder, String, TraceListener)

Adds a TraceSource logger named 'TraceSource' to the factory.

Applies to