<PackageReference Include="Serilog" Version="4.4.0-dev-02437" />

Serilog.Configuration.LoggerFilterConfiguration

Controls filter configuration.
public LoggerConfiguration ByExcluding(Func<LogEvent, bool> exclusionPredicate)

Filter out log events that match a predicate.

public LoggerConfiguration ByIncludingOnly(Func<LogEvent, bool> inclusionPredicate)

Filter log events to include only those that match a predicate.

Filter out log events from the stream based on the provided filter.

public LoggerConfiguration With<TFilter>() where TFilter : ILogEventFilter

Filter out log events from the stream based on the provided filter.