IDbContextLogger.Log(EventData) Method

Definition

Logs the given EventData.

public void Log (Microsoft.EntityFrameworkCore.Diagnostics.EventData eventData);
abstract member Log : Microsoft.EntityFrameworkCore.Diagnostics.EventData -> unit
Public Sub Log (eventData As EventData)

Parameters

eventData
EventData

The event to log.

Remarks

This method is only called if ShouldLog(EventId, LogLevel) returns true.

The specific subtype of the EventData argument is dependent on the event being logged. See CoreEventId for the type of event data used for each core event.

Applies to