LoggingSampler.ShouldSample<TState>(LogEntry<TState>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Makes a sampling decision for the provided 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
Type Parameters
- TState
The type of the log entry state.
Parameters
- logEntry
- LogEntry<TState>
The log entry used to make the sampling decision for.
Returns
true
if the log record should be sampled; otherwise, false
.