Lenguaje

IDiagnosticsLogger.ShouldLog(EventDefinitionBase) Método

Definición

Comprueba si el mensaje debe enviarse a .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

Definición del evento que se va a registrar.

Devoluciones

true si ILogger el registro está habilitado y el evento no debe omitirse; false de lo contrario, .

Se aplica a