![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
#include <logging.h>
Public Types | |
| using | MatchFn = std::function<bool(const std::string* line)> |
Public Member Functions | |
| DebugLogHelper (std::string message, MatchFn match=[](const std::string *){ return true;}) | |
| DebugLogHelper (const DebugLogHelper &)=delete | |
| DebugLogHelper & | operator= (const DebugLogHelper &)=delete |
| ~DebugLogHelper () | |
Private Attributes | |
| const std::string | m_message |
| bool | m_found {false} |
| std::list< std::function< void(conststd::string &)> >::iterator | m_print_connection |
| MatchFn | m_match |
| using DebugLogHelper::MatchFn = std::function<bool(const std::string* line)> |
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.
|
explicit |
Definition at line 14 of file logging.cpp.
|
delete |
| DebugLogHelper::~DebugLogHelper | ( | ) |
|
delete |
|
private |