Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

15 lignes
460 B

  1. #include <cpplogging/manager/matcher/matcher_regex.h>
  2. using namespace ::cpplogging;
  3. matcher_regex::matcher_regex(const std::string regex, bool invert)
  4. : _regex (regex)
  5. , _invert (invert)
  6. { }
  7. bool matcher_regex::match(const logger& logger) const
  8. { return std::regex_match(logger.name(), _regex) != _invert; }
  9. bool matcher_regex::match(const consumer& consumer) const
  10. { return std::regex_match(consumer.name(), _regex) != _invert; }