Sprache

IDiagnosticsLogger.ShouldLog(EventDefinitionBase) Methode

Definition

Überprüft, ob die Nachricht an die 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

Parameter

definition
EventDefinitionBase

Die Definition des zu protokollierenden Ereignisses.

Gibt zurück

true wenn ILogger die Protokollierung aktiviert ist und das Ereignis nicht ignoriert werden sollte, false andernfalls.

Gilt für: