#include <logging.h>
|
using | MatchFn = std::function< bool(const std::string *line)> |
| Custom match checking function. More...
|
|
Definition at line 14 of file logging.h.
◆ MatchFn
Custom match checking function.
Invoked with pointers to lines containing matching strings, and with null if check_found() is called without any successful match.
Can return true to enable default DebugLogHelper behavior of: (1) ending search after first successful match, and (2) raising an error in check_found if no match was found Can return false to do the opposite in either case.
Definition at line 29 of file logging.h.
◆ DebugLogHelper()
DebugLogHelper::DebugLogHelper |
( |
std::string |
message, |
|
|
MatchFn |
match = [](const std::string*){ return true; } |
|
) |
| |
|
explicit |
◆ ~DebugLogHelper()
DebugLogHelper::~DebugLogHelper |
( |
| ) |
|
|
inline |
◆ check_found()
void DebugLogHelper::check_found |
( |
| ) |
|
|
private |
◆ m_found
bool DebugLogHelper::m_found {false} |
|
private |
◆ m_match
◆ m_message
const std::string DebugLogHelper::m_message |
|
private |
◆ m_print_connection
std::list<std::function<void(conststd::string&)>>::iterator DebugLogHelper::m_print_connection |
|
private |
The documentation for this class was generated from the following files: