ILoggingBuilder ILoggingBuilder ILoggingBuilder Interface

Definition

An interface for configuring logging providers.

public interface ILoggingBuilder
type ILoggingBuilder = interface
Public Interface ILoggingBuilder

Properties

Services Services Services

Gets the IServiceCollection where Logging services are configured.

Extension Methods

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

Adds an Azure Web Apps diagnostics logger.

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

Adds services required to consume ILoggerProviderConfigurationFactory or ILoggerProviderConfiguration<T>

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>)

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

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

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

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

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

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

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

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<String,LogLevel,Boolean>) AddFilter(ILoggingBuilder, Func<String,LogLevel,Boolean>) AddFilter(ILoggingBuilder, Func<String,LogLevel,Boolean>)
AddFilter(ILoggingBuilder, Func<String,String,LogLevel,Boolean>) AddFilter(ILoggingBuilder, Func<String,String,LogLevel,Boolean>) AddFilter(ILoggingBuilder, Func<String,String,LogLevel,Boolean>)
AddFilter(ILoggingBuilder, String, LogLevel) AddFilter(ILoggingBuilder, String, LogLevel) AddFilter(ILoggingBuilder, String, LogLevel)
AddFilter(ILoggingBuilder, String, Func<LogLevel,Boolean>) AddFilter(ILoggingBuilder, String, Func<LogLevel,Boolean>) AddFilter(ILoggingBuilder, String, Func<LogLevel,Boolean>)
AddFilter<T>(ILoggingBuilder, Func<LogLevel,Boolean>) AddFilter<T>(ILoggingBuilder, Func<LogLevel,Boolean>) AddFilter<T>(ILoggingBuilder, Func<LogLevel,Boolean>)
AddFilter<T>(ILoggingBuilder, Func<String,LogLevel,Boolean>) AddFilter<T>(ILoggingBuilder, Func<String,LogLevel,Boolean>) AddFilter<T>(ILoggingBuilder, Func<String,LogLevel,Boolean>)
AddFilter<T>(ILoggingBuilder, String, LogLevel) AddFilter<T>(ILoggingBuilder, String, LogLevel) AddFilter<T>(ILoggingBuilder, String, LogLevel)
AddFilter<T>(ILoggingBuilder, String, Func<LogLevel,Boolean>) AddFilter<T>(ILoggingBuilder, String, Func<LogLevel,Boolean>) AddFilter<T>(ILoggingBuilder, String, Func<LogLevel,Boolean>)
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)
ClearProviders(ILoggingBuilder) ClearProviders(ILoggingBuilder) ClearProviders(ILoggingBuilder)
SetMinimumLevel(ILoggingBuilder, LogLevel) SetMinimumLevel(ILoggingBuilder, LogLevel) SetMinimumLevel(ILoggingBuilder, LogLevel)
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)

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

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)

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

Applies to