LoggingRedactionExtensions.EnableRedaction Método

Definição

Sobrecargas

EnableRedaction(ILoggingBuilder)

Habilita a funcionalidade de redação na infraestrutura de registro em log.

EnableRedaction(ILoggingBuilder, IConfigurationSection)

Habilita a funcionalidade de redação na infraestrutura de registro em log.

EnableRedaction(ILoggingBuilder, Action<LoggerRedactionOptions>)

Habilita a funcionalidade de redação na infraestrutura de registro em log.

EnableRedaction(ILoggingBuilder)

Origem:
LoggingRedactionExtensions.cs

Habilita a funcionalidade de redação na infraestrutura de registro em log.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ EnableRedaction(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder);
public static Microsoft.Extensions.Logging.ILoggingBuilder EnableRedaction (this Microsoft.Extensions.Logging.ILoggingBuilder builder);
static member EnableRedaction : Microsoft.Extensions.Logging.ILoggingBuilder -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function EnableRedaction (builder As ILoggingBuilder) As ILoggingBuilder

Parâmetros

builder
ILoggingBuilder

O contêiner de injeção de dependência ao qual adicionar o registro em log.

Retornos

O valor de builder.

Aplica-se a

EnableRedaction(ILoggingBuilder, IConfigurationSection)

Origem:
LoggingRedactionExtensions.cs

Habilita a funcionalidade de redação na infraestrutura de registro em log.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ EnableRedaction(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.Logging.ILoggingBuilder EnableRedaction (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member EnableRedaction : Microsoft.Extensions.Logging.ILoggingBuilder * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function EnableRedaction (builder As ILoggingBuilder, section As IConfigurationSection) As ILoggingBuilder

Parâmetros

builder
ILoggingBuilder

O contêiner de injeção de dependência ao qual adicionar o registro em log.

section
IConfigurationSection

Seção de configuração que contém LoggerRedactionOptions.

Retornos

O valor de builder.

Aplica-se a

EnableRedaction(ILoggingBuilder, Action<LoggerRedactionOptions>)

Origem:
LoggingRedactionExtensions.cs

Habilita a funcionalidade de redação na infraestrutura de registro em log.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ EnableRedaction(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Action<Microsoft::Extensions::Logging::LoggerRedactionOptions ^> ^ configure);
public static Microsoft.Extensions.Logging.ILoggingBuilder EnableRedaction (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Action<Microsoft.Extensions.Logging.LoggerRedactionOptions> configure);
static member EnableRedaction : Microsoft.Extensions.Logging.ILoggingBuilder * Action<Microsoft.Extensions.Logging.LoggerRedactionOptions> -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function EnableRedaction (builder As ILoggingBuilder, configure As Action(Of LoggerRedactionOptions)) As ILoggingBuilder

Parâmetros

builder
ILoggingBuilder

O contêiner de injeção de dependência ao qual adicionar o registro em log.

configure
Action<LoggerRedactionOptions>

Delegue as opções de ajuste fino.

Retornos

O valor de builder.

Aplica-se a