Commit 645d8ef2 authored by fmg005's avatar fmg005

modified CLA_Logger.h

parent 9dde5881
......@@ -18,6 +18,7 @@ namespace CLA {
string level_name;
const string m_filename;
ofstream m_logstream;
ostringstream ss;
enum LEVEL {DEBUG, INFO, WARNING, ERROR, FATAL};
string current_time();
......@@ -29,7 +30,6 @@ namespace CLA {
template <typename T>
void debug(const T& t) {
ostringstream ss;
ss << t;
m_logstream<<current_time()<<","<<set_level(LOGGER::DEBUG)<<","+ss.str()+"\n";
ss.str("");
......@@ -38,7 +38,6 @@ namespace CLA {
template <typename T>
void info(const T& t) {
ostringstream ss;
ss << t;
m_logstream<<current_time()<<","<<set_level(LOGGER::INFO)<<","+ss.str()+"\n";
ss.str("");
......@@ -48,7 +47,6 @@ namespace CLA {
template <typename T>
void warning(const T& t) {
ostringstream ss;
ss << t;
m_logstream<<current_time()<<","<<set_level(LOGGER::WARNING)<<","+ss.str()+"\n";
ss.str("");
......@@ -58,7 +56,6 @@ namespace CLA {
template <typename T>
void error(const T& t) {
ostringstream ss;
ss << t;
m_logstream<<current_time()<<","<<set_level(LOGGER::ERROR)<<","+ss.str()+"\n";
ss.str("");
......@@ -68,7 +65,6 @@ namespace CLA {
template <typename T>
void fatal(const T& t) {
ostringstream ss;
ss << t;
m_logstream<<current_time()<<","<<set_level(LOGGER::FATAL)<<","+ss.str()+"\n";
ss.str("");
......
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