Share via


LoggingRedactionExtensions.EnableRedaction Method

Definition

Overloads

EnableRedaction(ILoggingBuilder)

Enables redaction functionality within the logging infrastructure.

EnableRedaction(ILoggingBuilder, IConfigurationSection)

Enables redaction functionality within the logging infrastructure.

EnableRedaction(ILoggingBuilder, Action<LoggerRedactionOptions>)

Enables redaction functionality within the logging infrastructure.

EnableRedaction(ILoggingBuilder)

Source:
LoggingRedactionExtensions.cs

Enables redaction functionality within the logging infrastructure.

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

Parameters

builder
ILoggingBuilder

The dependency injection container to add logging to.

Returns

The value of builder.

Applies to

EnableRedaction(ILoggingBuilder, IConfigurationSection)

Source:
LoggingRedactionExtensions.cs

Enables redaction functionality within the logging infrastructure.

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

Parameters

builder
ILoggingBuilder

The dependency injection container to add logging to.

section
IConfigurationSection

Configuration section that contains LoggerRedactionOptions.

Returns

The value of builder.

Applies to

EnableRedaction(ILoggingBuilder, Action<LoggerRedactionOptions>)

Source:
LoggingRedactionExtensions.cs

Enables redaction functionality within the logging infrastructure.

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

Parameters

builder
ILoggingBuilder

The dependency injection container to add logging to.

configure
Action<LoggerRedactionOptions>

Delegate the fine-tune the options.

Returns

The value of builder.

Applies to