10 STGLogger::~STGLogger()
 
  14 ostream & STGLogger::operator <<(const string & val)
 
  21 void STGLogger::LogDate()
 
  24     struct tm * tt = localtime(&t);
 
  25     out << "[" << tt->tm_year + 1900 << "-";
 
  26     out << (tt->tm_mon + 1 < 10 ? "0" : "") << tt->tm_mon + 1 << "-";
 
  27     out << (tt->tm_mday < 10 ? "0" : "") << tt->tm_mday << " ";
 
  28     out << (tt->tm_hour < 10 ? "0" : "") << tt->tm_hour << ":";
 
  29     out << (tt->tm_min < 10 ? "0" : "") << tt->tm_min << ":";
 
  30     out << (tt->tm_sec < 10 ? "0" : "") << tt->tm_sec << "]";