Commit f91c70a2 authored by fmg005's avatar fmg005

display 'info' flagged log messages on stdout

parent 645d8ef2
......@@ -7,6 +7,7 @@
#include <fstream>
#include <utility>
#include <sstream>
#include <iostream>
using namespace std;
......@@ -32,7 +33,7 @@ namespace CLA {
void debug(const T& t) {
ss << t;
m_logstream<<current_time()<<","<<set_level(LOGGER::DEBUG)<<","+ss.str()+"\n";
ss.str("");
ss.str("");
ss.clear();
}
......@@ -40,6 +41,7 @@ namespace CLA {
void info(const T& t) {
ss << t;
m_logstream<<current_time()<<","<<set_level(LOGGER::INFO)<<","+ss.str()+"\n";
cout<<current_time()<<":"<<set_level(LOGGER::INFO)<<":"+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