--- smsdaemon/Logger.cpp 2010/04/29 18:04:10 694 +++ smsdaemon/Logger.cpp 2010/08/05 06:53:38 1011 @@ -69,7 +69,8 @@ ostringstream out; - out << Months[ now.tm_mon ] << " " << setw(2) << setfill('0') << now.tm_mday; + + out << (1900+now.tm_year) << "-" << setw(2) << setfill('0') << (now.tm_mon+1) << "-" << setw(2) << setfill('0') << now.tm_mday; out << " " << setw(2) << setfill('0') << now.tm_hour; out << ":" << setw(2) << setfill('0') << now.tm_min; out << ":" << setw(2) << setfill('0') << now.tm_sec; @@ -102,4 +103,14 @@ syslog(LOG_INFO, "%s", msg.c_str()); } } + + std::string getLog() + { + std::ostringstream oss; + for (unsigned i=0; i