25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
450 B

  1. #pragma once
  2. #include <regex>
  3. #include <cpputils/logging/matcher/matcher.h>
  4. namespace utl {
  5. namespace logging {
  6. struct matcher_regex : public matcher
  7. {
  8. private:
  9. std::regex _regex;
  10. bool _invert;
  11. public:
  12. bool match(const logger& logger) const override;
  13. bool match(const consumer& consumer) const override;
  14. matcher_regex(const std::string expression, bool invert = false);
  15. };
  16. }
  17. }