IDbContextLogger.ShouldLog(EventId, LogLevel) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Détermine si l’événement donné doit être journalisé ou non.
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
Paramètres
- eventId
- EventId
ID de l'événement.
- logLevel
- LogLevel
Niveau de l'événement.
Retours
Retourne true si l’événement doit être journalisé; false s’il doit être filtré.