NLog.Filters.WhenMethodFilter public class WhenMethodFilter : Filter Matches the provided filter-method Documentation public WhenMethodFilter(Func<LogEventInfo, FilterResult> filterMethod) Initializes a new instance of the WhenMethodFilter class.