Bagikan melalui


IDbContextLogger.ShouldLog(EventId, LogLevel) Metode

Definisi

Menentukan apakah peristiwa yang diberikan harus dicatat atau tidak.

public bool ShouldLog (Microsoft.Extensions.Logging.EventId eventId, Microsoft.Extensions.Logging.LogLevel logLevel);
abstract member ShouldLog : Microsoft.Extensions.Logging.EventId * Microsoft.Extensions.Logging.LogLevel -> bool
Public Function ShouldLog (eventId As EventId, logLevel As LogLevel) As Boolean

Parameter

eventId
EventId

ID peristiwa.

logLevel
LogLevel

Tingkat peristiwa.

Mengembalikan

Mengembalikan true jika peristiwa harus dicatat; false jika harus difilter.

Berlaku untuk