Use ISO8601 date format in the runtime startup log.

This commit is contained in:
Dave Page 2020-07-11 16:47:36 +05:30 committed by Akshay Joshi
parent 5ac656c638
commit dd38fed6e0

View File

@ -18,6 +18,7 @@ QFile* Logger::m_Logfile = Q_NULLPTR;
Logger::Logger()
{
}
Logger::~Logger()
{
}
@ -39,7 +40,7 @@ Logger* Logger::GetLogger()
void Logger::Log(const QString& sMessage)
{
QString text = QDateTime::currentDateTime().toString("dd.MM.yyyy hh:mm:ss ") + sMessage + "\n";
QString text = QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss: ") + sMessage + "\n";
if (m_Logfile != Q_NULLPTR)
{
QTextStream out(m_Logfile);