MCPcopy Create free account
hub / github.com/bcndev/bytecoin / LoggerMessage

Method LoggerMessage

src/logging/LoggerMessage.cpp:8–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6namespace logging {
7
8LoggerMessage::LoggerMessage(ILogger &logger, const std::string &category, Level level)
9 : std::ostream(this), logger(logger), category(category), log_level(level), timestamp(time(nullptr)) {
10 // (*this) << std::string{ILogger::COLOR_PREFIX, static_cast<char>(ILogger::COLOR_LETTER_DEFAULT + color)};
11 // (*this) << color;
12}
13
14LoggerMessage::~LoggerMessage() {
15 if (!str().empty())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected