std.log.match

filter-base

added in 3.0

(filter-base value filter)

matches based on input and filter

(filter-base “hello” #“h.*”) => true

filter-exclude

added in 3.0

(filter-exclude value filters)

negative if one of the matches hit

(filter-exclude :hello nil) => true

filter-include

added in 3.0

(filter-include value filters)

positive if filter is empty or one of the matches hit

(filter-include :hello nil) => true

filter-value

added in 3.0

(filter-value value {:keys [include exclude ignore]})

filters based on exclude and include filters

(filter-value “hello” nil) => true

match

added in 3.0

(match {:keys [level namespace function filter], :as m} entry)

matches the logger with event information

(match {:level :debug} {:log/level :debug}) => true

match-filter

added in 3.0

(match-filter filter entry)

helper for match

(match-filter {:log/tags {:include “hello”}} {:log/tags #{:hello :world}})