ILoggingBuilder Interfész

Definíció

A naplózási szolgáltatók konfigurálásának felülete.

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

Tulajdonságok

Name Description
Services

Lekéri a naplózási IServiceCollection szolgáltatások konfigurálását.

Bővítő metódusok

Name Description
AddAzureWebAppDiagnostics(ILoggingBuilder, Action<AzureBlobLoggerOptions>)

Hozzáad egy Azure Web Apps diagnosztikai naplózót.

AddAzureWebAppDiagnostics(ILoggingBuilder)

Hozzáad egy Azure Web Apps diagnosztikai naplózót.

AddConfiguration(ILoggingBuilder, IConfiguration)

A LoggerFilterOptions egy példányából konfigurálható IConfiguration.

AddConfiguration(ILoggingBuilder)

Olyan szolgáltatásokat ad hozzá, amelyekre szükség van a használathoz ILoggerProviderConfigurationFactory vagy ILoggerProviderConfiguration<T>

AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>)

Hozzáad egy "Console" nevű konzolnaplózót a gyárhoz.

AddConsole(ILoggingBuilder)

Hozzáad egy "Console" nevű konzolnaplózót a gyárhoz.

AddConsoleFormatter<TFormatter,TOptions>(ILoggingBuilder, Action<TOptions>)

Hozzáad egy "TFormatter" egyéni konzolnaplózót, amely a "TOptions" beállításokkal konfigurálható.

AddConsoleFormatter<TFormatter,TOptions>(ILoggingBuilder)

Hozzáad egy "TFormatter" egyéni konzolnaplózót, amely a "TOptions" beállításokkal konfigurálható.

AddDebug(ILoggingBuilder)

Hozzáad egy "Debug" nevű hibakeresőt a gyárhoz.

AddEventLog(ILoggingBuilder, Action<EventLogSettings>)

Eseménynaplózót ad hozzá. Adott naplószintek naplózásának engedélyezésére használható configure .

AddEventLog(ILoggingBuilder, EventLogSettings)

Eseménynaplózót ad hozzá. Adott naplószintek naplózásának engedélyezésére használható settings .

AddEventLog(ILoggingBuilder)

Hozzáad egy "EventLog" nevű eseménynaplót a gyárhoz.

AddEventSourceLogger(ILoggingBuilder)

Hozzáad egy naplózót, amely üzeneteket ír a LoggingEventSource példányba.

AddFakeLogging(ILoggingBuilder, Action<FakeLogCollectorOptions>)

Hamis naplózást konfigurál.

AddFakeLogging(ILoggingBuilder, IConfigurationSection)

Hamis naplózást konfigurál.

AddFakeLogging(ILoggingBuilder)

A hamis naplózást alapértelmezett beállításokkal konfigurálja.

AddFilter(ILoggingBuilder, Func<LogLevel,Boolean>)

Naplószűrőt ad hozzá a gyárhoz.

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

Naplószűrőt ad hozzá a gyárhoz.

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

Naplószűrőt ad hozzá a gyárhoz.

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

Naplószűrőt ad hozzá a gyárhoz.

AddFilter(ILoggingBuilder, String, LogLevel)

Naplószűrőt ad hozzá a gyárhoz.

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

Naplószűrőt ad hozzá a megadotthoz ILoggerProvider.

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

Naplószűrőt ad hozzá a megadotthoz ILoggerProvider.

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

Naplószűrőt ad hozzá a megadotthoz ILoggerProvider.

AddFilter<T>(ILoggingBuilder, String, LogLevel)

Naplószűrőt ad hozzá a megadotthoz ILoggerProvider.

AddGlobalBuffer(ILoggingBuilder, Action<GlobalLogBufferingOptions>)

Globális naplópufferelést ad hozzá a naplózási infrastruktúrához.

AddGlobalBuffer(ILoggingBuilder, IConfiguration)

Globális naplópufferelést ad hozzá a naplózási infrastruktúrához.

AddGlobalBuffer(ILoggingBuilder, Nullable<LogLevel>)

Globális naplópufferelést ad hozzá a naplózási infrastruktúrához.

AddJsonConsole(ILoggingBuilder, Action<JsonConsoleFormatterOptions>)

Adjon hozzá és konfiguráljon egy "json" nevű konzolnapló-formázót a gyárhoz.

AddJsonConsole(ILoggingBuilder)

Adjon hozzá egy "json" nevű konzolnapló-formázót az alapértelmezett tulajdonságokkal rendelkező gyárhoz.

AddProvider(ILoggingBuilder, ILoggerProvider)

Hozzáadja a megadottt ILoggerProvider a ILoggingBuilder

AddRandomProbabilisticSampler(ILoggingBuilder, Action<RandomProbabilisticSamplerOptions>)

Véletlenszerű valószínűségi naplózási mintavevőt ad hozzá a naplózási infrastruktúrához.

AddRandomProbabilisticSampler(ILoggingBuilder, Double, Nullable<LogLevel>)

Véletlenszerű valószínűségi naplózási mintavevőt ad hozzá a naplózási infrastruktúrához.

AddRandomProbabilisticSampler(ILoggingBuilder, IConfiguration)

Véletlenszerű valószínűségi naplózási mintavevőt ad hozzá a naplózási infrastruktúrához.

AddSampler(ILoggingBuilder, LoggingSampler)

Hozzáad egy naplózási mintavevő példányt a naplózási infrastruktúrához.

AddSampler<T>(ILoggingBuilder)

Hozzáad egy naplózási mintavevőtípust a naplózási infrastruktúrához.

AddSimpleConsole(ILoggingBuilder, Action<SimpleConsoleFormatterOptions>)

Adjon hozzá és konfiguráljon egy "egyszerű" nevű konzolnapló-formázót a gyárhoz.

AddSimpleConsole(ILoggingBuilder)

Adja hozzá az "egyszerű" nevű alapértelmezett konzolnapló-formázót az alapértelmezett tulajdonságokkal rendelkező gyárhoz.

AddSystemdConsole(ILoggingBuilder, Action<ConsoleFormatterOptions>)

Adjon hozzá és konfiguráljon egy "systemd" nevű konzolnapló-formázót a gyárhoz.

AddSystemdConsole(ILoggingBuilder)

Adjon hozzá egy "systemd" nevű konzolnapló-formázót az alapértelmezett tulajdonságokkal rendelkező gyárhoz.

AddTraceBasedSampler(ILoggingBuilder)

Nyomkövetési alapú naplózási mintavevőt ad hozzá a naplózási infrastruktúrához.

AddTraceSource(ILoggingBuilder, SourceSwitch, TraceListener)

Hozzáad egy naplózót, amely a fájlba TraceSourceír.

AddTraceSource(ILoggingBuilder, SourceSwitch)

Hozzáad egy naplózót, amely a fájlba TraceSourceír.

AddTraceSource(ILoggingBuilder, String, TraceListener)

Hozzáad egy naplózót, amely a fájlba TraceSourceír.

AddTraceSource(ILoggingBuilder, String)

Hozzáad egy naplózót, amely a fájlba TraceSourceír.

ClearProviders(ILoggingBuilder)

Eltávolítja az összes ILoggerProviders-t a fájlból builder.

EnableEnrichment(ILoggingBuilder, Action<LoggerEnrichmentOptions>)

Lehetővé teszi a bővítési funkciókat a naplózási infrastruktúrán belül.

EnableEnrichment(ILoggingBuilder, IConfigurationSection)

Lehetővé teszi a bővítési funkciókat a naplózási infrastruktúrán belül.

EnableEnrichment(ILoggingBuilder)

Lehetővé teszi a bővítési funkciókat a naplózási infrastruktúrán belül.

EnableRedaction(ILoggingBuilder, Action<LoggerRedactionOptions>)

Engedélyezi a naplózási infrastruktúrán belüli újrahasználati funkciókat.

EnableRedaction(ILoggingBuilder, IConfigurationSection)

Engedélyezi a naplózási infrastruktúrán belüli újrahasználati funkciókat.

EnableRedaction(ILoggingBuilder)

Engedélyezi a naplózási infrastruktúrán belüli újrahasználati funkciókat.

SetMinimumLevel(ILoggingBuilder, LogLevel)

Beállítja a naplóüzenetek naplózásának minimális LogLevel követelményét.

A következőre érvényes: