26 : m_timeSample(timeSample),
27 m_streamPrintPeriod(streamPrintPeriod),
28 m_printCountdown(0.0) {
43 stream(type, lineId) << msg <<
'\n';
48 std::ostringstream oss;
50 stream(type, oss.str()) << msg <<
'\n';
54 if (t <= 0.0)
return false;
60 if (s <= 0.0)
return false;
72 std::pair<StreamCounterMap_t::iterator, bool> result =
76 double &counter = result.first->second;
double m_streamPrintPeriod
specify the period of call of the countdown method
bool checkStreamPeriod(const std::string &lineId)
double m_timeSample
verbosity of the logger
double getStreamPrintPeriod()
Logger(double timeSample=0.001, double streamPrintPeriod=1.0)
bool setTimeSample(double t)
void setVerbosity(LoggerVerbosity lv)
bool setStreamPrintPeriod(double s)
double m_printCountdown
specify the time period of the stream prints
void sendMsg(std::string msg, MsgType type, const std::string &lineId="")
StreamCounterMap_t m_stream_msg_counters
LoggerVerbosity getVerbosity()