| 48 | } |
| 49 | |
| 50 | void Log(const std::string& msg) |
| 51 | { |
| 52 | const std::string full_msg = this->LogMsg(msg); |
| 53 | |
| 54 | if (m_log_category == BCLog::LogFlags::ALL) { |
| 55 | LogPrintf("%s\n", full_msg); |
| 56 | } else { |
| 57 | LogPrint(m_log_category, "%s\n", full_msg); |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | std::string LogMsg(const std::string& msg) |
| 62 | { |