working receive

This commit is contained in:
2023-02-17 19:19:11 +01:00
parent e313b8f2be
commit 2d3a358dfe
5 changed files with 36 additions and 23 deletions

View File

@@ -32,7 +32,7 @@ inline std::string_view get_loglevel_string(LogLevel level) {
class logging_adapter {
public:
virtual bool init(){}
virtual bool init() { return true; }
virtual void log(std::string_view message) const = 0;
};
@@ -79,8 +79,8 @@ class log {
return;
}
//std::stringstream msg;
//msg << get_loglevel_string(level) << ": " << message;
// std::stringstream msg;
// msg << get_loglevel_string(level) << ": " << message;
logger->log(get_loglevel_string(level));
logger->log(": ");
logger->log(message);