Share via


IDiagnosticsLogger.DispatchEventData Method

Definition

Dispatches the given EventData to a DiagnosticSource, if enabled, and a IDbContextLogger, if enabled.

public virtual void DispatchEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase definition, Microsoft.EntityFrameworkCore.Diagnostics.EventData eventData, bool diagnosticSourceEnabled, bool simpleLogEnabled);
abstract member DispatchEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Microsoft.EntityFrameworkCore.Diagnostics.EventData * bool * bool -> unit
override this.DispatchEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Microsoft.EntityFrameworkCore.Diagnostics.EventData * bool * bool -> unit
Public Overridable Sub DispatchEventData (definition As EventDefinitionBase, eventData As EventData, diagnosticSourceEnabled As Boolean, simpleLogEnabled As Boolean)

Parameters

definition
EventDefinitionBase

The definition of the event to log.

eventData
EventData

The event data.

diagnosticSourceEnabled
Boolean

True to dispatch to a DiagnosticSource; false otherwise.

simpleLogEnabled
Boolean

True to dispatch to a IDbContextLogger; false otherwise.

Applies to