Mercurial > hg > svcore
diff base/Debug.cpp @ 1554:04a198887a3d
Datestamp debug log
author | Chris Cannam |
---|---|
date | Fri, 12 Oct 2018 11:00:01 +0100 |
parents | 838a45cff62d |
children | 70e172e6cc59 |
line wrap: on
line diff
--- a/base/Debug.cpp Thu Oct 11 13:08:21 2018 +0100 +++ b/base/Debug.cpp Fri Oct 12 11:00:01 2018 +0100 @@ -20,6 +20,7 @@ #include <QDir> #include <QUrl> #include <QCoreApplication> +#include <QDateTime> #include <stdexcept> @@ -82,8 +83,9 @@ << "Failed to open debug log file " << fileName << " for writing"; } else { -// cerr << m_prefix << ": Log file is " << fileName << endl; m_ok = true; + (*this) << "Debug log started at " + << QDateTime::currentDateTime().toString() << endl; } }