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

Serilog.Filters.Matching

public static class Matching
Predicates applied to log events that can be used
public static Func<LogEvent, bool> FromSource<TSource>()

Matches events from the specified source type.

public static Func<LogEvent, bool> FromSource(string source)

Matches events from the specified source type or namespace and nested types or namespaces.

public static Func<LogEvent, bool> WithProperty(string propertyName)

Matches events with the specified property attached, regardless of its value.

public static Func<LogEvent, bool> WithProperty(string propertyName, object scalarValue)

Matches events with the specified property value.

public static Func<LogEvent, bool> WithProperty<TScalar>(string propertyName, Func<TScalar, bool> predicate)

Matches events with the specified property value.