15 : m_message{
std::move(message)}, m_match(
std::move(
match))
18 [
this](
const std::string& s) {
30 tfm::format(std::cerr,
"Fatal error: expected message not found in the debug log: '%s'\n",
m_message);
std::list< std::function< void(conststd::string &)> >::iterato PushBackCallback)(std::function< void(const std::string &)> fun) EXCLUSIVE_LOCKS_REQUIRED(!m_cs)
Connect a slot to the print signal and return the connection.
void DeleteCallback(std::list< std::function< void(const std::string &)> >::iterator it) EXCLUSIVE_LOCKS_REQUIRED(!m_cs)
Delete a connection.
std::function< bool(const std::string *line)> MatchFn
Custom match checking function.
DebugLogHelper(std::string message, MatchFn match=[](const std::string *){ return true;})
const std::string m_message
std::list< std::function< void(conststd::string &)> >::iterato m_print_connection)
BCLog::Logger & LogInstance()
void noui_test_redirect()
Redirect all bitcoind signal handlers to LogInfo.
void noui_reconnect()
Reconnects the regular Non-GUI handlers after having used noui_test_redirect.
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.