debugging

This commit is contained in:
Dhanya Maliakal
2016-11-08 10:19:14 +01:00
parent 96e79c7b99
commit cb274095fd

View File

@ -125,7 +125,7 @@ inline std::string NowTime()
inline std::string NowTime() inline std::string NowTime()
{ {
char buffer[11]; char buffer[11];cout<<"111"<<endl;
time_t t; time_t t;
time(&t); time(&t);
tm r = {0}; tm r = {0};
@ -145,9 +145,9 @@ template <typename T> Log<T>::Log():lev(logDEBUG){}
template <typename T> std::ostringstream& Log<T>::Get(TLogLevel level) template <typename T> std::ostringstream& Log<T>::Get(TLogLevel level)
{ {
lev = level; lev = level;
os << "- " << NowTime(); os << "- " << NowTime();cout<<"111 "<<os<<endl;
os << " " << ToString(level) << ": "; os << " " << ToString(level) << ": ";cout<<"222 " <<os<<endl;
os << std::string(level > logDEBUG ? level - logDEBUG : 0, '\t'); os << std::string(level > logDEBUG ? level - logDEBUG : 0, '\t');cout<<"333 "<<os<<endl;
return os; return os;
} }