Log v0.9.0 Log.Filter.Tag View Source

Link to this section Summary

Link to this section Types

Link to this type

t()

View Source
t() :: %Log.Filter.Tag{
  include_untagged?: boolean(),
  level: Log.Level.t(),
  must_exclude: :none | :all | [Log.Tag.name(), ...],
  must_include: :none | [Log.Tag.name(), ...],
  one_of: :any | [Log.Tag.name(), ...]
}

Link to this section Functions

Link to this function

match?(filter, arg)

View Source
match?(filter :: t(), tags :: {Log.Tag.List.t(), Log.Level.t()}) :: boolean()
Link to this function

parse(tags)

View Source
parse(tags :: {String.t(), String.t()}) :: {:ok, t()} | {:error, String.t()}
Link to this function

parse!(tags_and_level_name)

View Source
parse!(tags_and_level_name :: {String.t(), String.t()}) :: t() | no_return()
Link to this function

put(filter, name)

View Source
put(filter :: t(), name :: Log.Filter.Tag.Name.t()) ::
  {:error, String.t()} | {:ok, t()}
Link to this function

put_level(filter, level_name)

View Source
put_level(t(), String.t()) :: {:error, String.t()} | {:ok, t()}
Link to this function

put_tags(filter, tags)

View Source
put_tags(t(), String.t()) :: {:error, String.t()} | {:ok, t()}
Link to this function

tagged(level_name \\ "_max")

View Source
Link to this function

untagged(level_name \\ "_max")

View Source