mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 05:17:13 +02:00
debugging
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user