6 #include <msp/strings/format.h>
11 std::vector<std::string> enabled_channels;
14 void enable_channel(const std::string &);
15 void disable_channel(const std::string &);
16 bool is_channel_enabled(const std::string &) const;
18 void log(const std::string &, const std::string &) const;
20 template<typename... Args>
21 void log(const std::string &, const std::string &, Args &&...) const;
24 void print(const std::string &) const;
27 template<typename... Args>
28 void Logger::log(const std::string &chan, const std::string &fmt, Args &&... args) const
30 if(is_channel_enabled(chan))
31 print(Msp::format(fmt, std::forward<Args>(args)...));