SamplingLoggerBuilderExtensions Class
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.
Extensions for configuring logging sampling.
public ref class SamplingLoggerBuilderExtensions abstract sealed
public static class SamplingLoggerBuilderExtensions
type SamplingLoggerBuilderExtensions = class
Public Module SamplingLoggerBuilderExtensions
- Inheritance
-
SamplingLoggerBuilderExtensions
Methods
AddRandomProbabilisticSampler(ILoggingBuilder, Action<RandomProbabilisticSamplerOptions>) |
Adds Random Probabilistic logging sampler to the logging infrastructure. |
AddRandomProbabilisticSampler(ILoggingBuilder, Double, Nullable<LogLevel>) |
Adds Random Probabilistic logging sampler to the logging infrastructure. |
AddRandomProbabilisticSampler(ILoggingBuilder, IConfiguration) |
Adds Random Probabilistic logging sampler to the logging infrastructure. |
AddSampler(ILoggingBuilder, LoggingSampler) |
Adds a logging sampler instance to the logging infrastructure. |
AddSampler<T>(ILoggingBuilder) |
Adds a logging sampler type to the logging infrastructure. |
AddTraceBasedSampler(ILoggingBuilder) |
Adds Trace-based logging sampler to the logging infrastructure. |