29 template <
typename... Es>
explicit filters(
const Es*... elems) { (add(elems), ...); }
62 nbool
filt(errLv::level lv,
const std::string& tag)
const;
65 std::vector<const filterable*> _arr;
Interface for objects that can filter log messages
Definition filterable.hpp:17
Collection of filterable objects for logging control
Definition filters.hpp:16
void rel()
Clears all contained filterable objects without deleting them.
nbool filt(errLv::level lv, const std::string &tag) const
Applies all contained filters to the log entry.
filters(const Es *... elems)
Constructs a filters object with multiple filterable elements.
Definition filters.hpp:29
void add(const filterable &new1)
Adds a filterable object to the collection.
void del()
Deletes all owned filterable objects and clears the collection.
void add(const filterable *new1)
Adds a filterable object to the collection.