Utility class that allows filtering of and searching for messages.
More...
Utility class that allows filtering of and searching for messages.
Definition at line 45 of file test_logger.h.
◆ ContainsMessage() [1/2]
bool ContainsMessage |
( |
const std::regex & |
strPattern, |
|
|
bool |
bPartialMatch = true |
|
) |
| |
- Parameters
-
[in] | strPattern | The pattern to match. |
[in] | bPartialMatch | Whether or not match the whole string or only parts. |
- Returns
- Whether there is a message that matches the given pattern or not.
◆ ContainsMessage() [2/2]
bool ContainsMessage |
( |
const std::string & |
strContent | ) |
|
- Parameters
-
[in] | strContent | The string to look for. |
- Returns
- Whether there is a message that contains the given string or not.
◆ Filter() [1/3]
tMessages Filter |
( |
const std::regex & |
strPattern, |
|
|
bool |
bPartialMatch = true |
|
) |
| |
- Parameters
-
[in] | strPattern | The pattern to match. |
[in] | bPartialMatch | Whether or not match the whole string or only parts. |
- Returns
- All messages that match the pattern.
◆ Filter() [2/3]
tMessages Filter |
( |
const std::string & |
strContent | ) |
|
- Parameters
-
[in] | strContent | The string to look for. |
- Returns
- All messages that contain the given string.
◆ Filter() [3/3]
- Parameters
-
[in] | nLogLevel | The log level to look for, see adtf::util::log::tLogLevel |
- Returns
- All messages with the given log level.
◆ FilterSource() [1/2]
tMessages FilterSource |
( |
const std::regex & |
strPattern, |
|
|
bool |
bPartialMatch = true |
|
) |
| |
- Parameters
-
[in] | strPattern | The pattern to match. |
[in] | bPartialMatch | Whether or not match the whole string or only parts. |
- Returns
- All messages of which the source matchs the pattern.
◆ FilterSource() [2/2]
tMessages FilterSource |
( |
const std::string & |
strContent | ) |
|
- Parameters
-
[in] | strContent | The string to look for. |
- Returns
- All messages of which the source contains the given string.
◆ FindMessage() [1/2]
tMessage FindMessage |
( |
const std::regex & |
strPattern, |
|
|
bool |
bPartialMatch = true |
|
) |
| |
Find a message that matches the given pattern.
- Parameters
-
[in] | strPattern | The pattern to match. |
[in] | bPartialMatch | Whether or not match the whole string or only parts. |
- Returns
- The first message that matches.
◆ FindMessage() [2/2]
tMessage FindMessage |
( |
const std::string & |
strContent | ) |
|
Find a message that contains the given string.
- Parameters
-
[in] | strContent | The string to look for. |
- Returns
- The first message that contains the string.