Mercurial > hg > svcore
changeset 1554:04a198887a3d
Datestamp debug log
author | Chris Cannam |
---|---|
date | Fri, 12 Oct 2018 11:00:01 +0100 (2018-10-12) |
parents | 66c1988fc906 |
children | 616d3e8a250b |
files | base/Debug.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
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; } }