Partilhar via


LoggingBuilderExtensions.SetMinimumLevel(ILoggingBuilder, LogLevel) Método

Definição

Define um requisito mínimo de LogLevel para que as mensagens de log sejam registradas.

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

Parâmetros

builder
ILoggingBuilder

O ILoggingBuilder para definir o nível mínimo.

level
LogLevel

O LogLevel a ser definido como o mínimo.

Retornos

O ILoggingBuilder para que chamadas adicionais possam ser encadeadas.

Aplica-se a