LoggingSampler.ShouldSample<TState>(LogEntry<TState>) 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.
Prend une décision d’échantillonnage pour les données fournies logEntry.
public:
generic <typename TState>
abstract bool ShouldSample(Microsoft::Extensions::Logging::Abstractions::LogEntry<TState> ^ logEntry);
public abstract bool ShouldSample<TState>(in Microsoft.Extensions.Logging.Abstractions.LogEntry<TState> logEntry);
abstract member ShouldSample : LogEntry -> bool
Public MustOverride Function ShouldSample(Of TState) (logEntry As LogEntry(Of TState)) As Boolean
Paramètres de type
- TState
Type de l’état d’entrée du journal.
Paramètres
- logEntry
- LogEntry<TState>
Entrée du journal utilisée pour prendre la décision d’échantillonnage.
Retours
true si l’enregistrement du journal doit être échantillonné ; sinon, false.