| 6 | namespace logging { |
| 7 | |
| 8 | LoggerMessage::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 | |
| 14 | LoggerMessage::~LoggerMessage() { |
| 15 | if (!str().empty()) |
nothing calls this directly
no outgoing calls
no test coverage detected