filters.hpp
Go to the documentation of this file.
1
2#pragma once
3
5
6namespace by {
11 class _nout filters: public filterable {
12 BY(ME(filters))
13
14 public:
15 filters() {}
16
17 template <typename... Es> explicit filters(const Es*... elems) { (add(elems), ...); }
18
19 virtual ~filters();
20
21 public:
22 ncnt len() const;
23 void rel();
24 void add(const filterable& new1);
25 void add(const filterable* new1);
26 void del();
27 nbool filt(errLv::level lv, const std::string& tag) const;
28
29 private:
30 std::vector<const filterable*> _arr;
31 };
32}
Interface for objects that can filter log messages.
Definition: filterable.hpp:11
Collection of filterable objects for logging control.
Definition: filters.hpp:11
nbool filt(errLv::level lv, const std::string &tag) const