18enum class LogLevel { kDebug, kInfo, kWarning, kCritical };
22 using LoggerPtr = std::shared_ptr<LoggerInterface>;
24 void addLogger(LoggerPtr logger);
26 void logCritical(
const std::string &msg)
const;
27 void logWarning(
const std::string &msg)
const;
28 void logInfo(
const std::string &msg)
const;
29 void logDebug(
const std::string &msg)
const;
44 LogLevel getLogLevel()
const;
46 void setLogLevel(LogLevel logLevel);
48 static LogLevel logLevelFromString(
const std::string &level);
52 template <
typename LogFunction>
void logCommand(LogFunction function)
const;
54 std::vector<LoggerPtr> logger_list_;
56 LogLevel log_level_ = LogLevel::kDebug;
Definition logger_interface.h:57