Commit fe657c07 authored by fmg005's avatar fmg005

print 'warning' flagged log messages to stdout

parent 1561341a
......@@ -21,8 +21,7 @@ void HardwareSimulator::SetHeartRate(int rate) {
m_logger->info("Heart rate set to "+to_string(rate)+" brpm");
}
else {
m_logger->warning("Heart rate value: "+to_string(rate)+" not
within acceptable range 10-360");
m_logger->warning("Heart rate value: "+to_string(rate)+" not within acceptable range 10-360");
}
}
......@@ -35,8 +34,7 @@ void HardwareSimulator::SetRespRate(int rate) {
m_logger->info("Respiratory rate set to "+to_string(rate));
}
else {
m_logger->warning("Respiratory rate value: "+to_string(rate)+" not
within acceptable range 10-150");
m_logger->warning("Respiratory rate value: "+to_string(rate)+" not within acceptable range 10-150");
}
}
......
......@@ -51,6 +51,8 @@ namespace CLA {
void warning(const T& t) {
ss << t;
m_logstream<<current_time(true)<<","<<set_level(LOGGER::WARNING)<<","+ss.str()+"\n";
cout<<current_time(false)<<":"<<set_level(LOGGER::WARNING)<<":"+ss.str()<<endl;
ss.str("");
ss.clear();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment