Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

23 linhas
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. }