Share via


IDiagnosticsLogger.ShouldLog(EventDefinitionBase) Método

Definição

Verifica se a mensagem deve ou não ser enviada para o ILogger.

public virtual bool ShouldLog (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase definition);
abstract member ShouldLog : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase -> bool
override this.ShouldLog : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase -> bool
Public Overridable Function ShouldLog (definition As EventDefinitionBase) As Boolean

Parâmetros

definition
EventDefinitionBase

A definição do evento a ser registrado.

Retornos

true se ILogger o registro em log estiver habilitado e o evento não deve ser ignorado; caso contrário, false .

Aplica-se a