Changeset View
Changeset View
Standalone View
Standalone View
src/logging.cpp
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | bool BCLog::Logger::StartLogging() { | ||||
} | } | ||||
if (m_print_to_console) { | if (m_print_to_console) { | ||||
fflush(stdout); | fflush(stdout); | ||||
} | } | ||||
return true; | return true; | ||||
} | } | ||||
void BCLog::Logger::DisconnectTestLogger() { | |||||
std::lock_guard<std::mutex> scoped_lock(m_cs); | |||||
m_buffering = true; | |||||
if (m_fileout != nullptr) { | |||||
fclose(m_fileout); | |||||
} | |||||
m_fileout = nullptr; | |||||
} | |||||
struct CLogCategoryDesc { | struct CLogCategoryDesc { | ||||
BCLog::LogFlags flag; | BCLog::LogFlags flag; | ||||
std::string category; | std::string category; | ||||
}; | }; | ||||
const CLogCategoryDesc LogCategories[] = { | const CLogCategoryDesc LogCategories[] = { | ||||
{BCLog::NONE, "0"}, | {BCLog::NONE, "0"}, | ||||
{BCLog::NONE, "none"}, | {BCLog::NONE, "none"}, | ||||
▲ Show 20 Lines • Show All 225 Lines • Show Last 20 Lines |