Changeset View
Changeset View
Standalone View
Standalone View
src/logging.cpp
Show First 20 Lines • Show All 123 Lines • ▼ Show 20 Lines | for (const CLogCategoryDesc &category_desc : LogCategories) { | ||||
} | } | ||||
ret += category_desc.category; | ret += category_desc.category; | ||||
outcount++; | outcount++; | ||||
} | } | ||||
} | } | ||||
return ret; | return ret; | ||||
} | } | ||||
std::vector<CLogCategoryActive> ListActiveLogCategories() { | |||||
std::vector<CLogCategoryActive> ret; | |||||
for (const CLogCategoryDesc &category_desc : LogCategories) { | |||||
// Omit the special cases. | |||||
if (category_desc.flag != BCLog::NONE && | |||||
category_desc.flag != BCLog::ALL) { | |||||
CLogCategoryActive catActive; | |||||
catActive.category = category_desc.category; | |||||
catActive.active = LogAcceptCategory(category_desc.flag); | |||||
ret.push_back(catActive); | |||||
} | |||||
} | |||||
return ret; | |||||
} | |||||
BCLog::Logger::~Logger() { | BCLog::Logger::~Logger() { | ||||
if (m_fileout) { | if (m_fileout) { | ||||
fclose(m_fileout); | fclose(m_fileout); | ||||
} | } | ||||
} | } | ||||
std::string BCLog::Logger::LogTimestampStr(const std::string &str) { | std::string BCLog::Logger::LogTimestampStr(const std::string &str) { | ||||
std::string strStamped; | std::string strStamped; | ||||
▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines |