1 #include <msp/io/print.h>
7 void Logger::enable_channel(const string &chan)
9 enabled_channels.insert(chan);
12 void Logger::disable_channel(const string &chan)
14 enabled_channels.erase(chan);
17 void Logger::log(const string &chan, const string &message) const
19 if(enabled_channels.count(chan))
20 IO::print("%s\n", message);