diff options
| author | Tannin <sherb@gmx.net> | 2015-11-23 21:44:47 +0100 |
|---|---|---|
| committer | Tannin <sherb@gmx.net> | 2015-11-23 21:44:47 +0100 |
| commit | fe8c3aaea58400425b9195bb670a1b4e8c9db10d (patch) | |
| tree | 98794bf2f4cab307eb39d75ec119745a962d4e98 /src/usvfsconnector.cpp | |
| parent | dda9e1197670cddb69789cc9a179d09cd8e560a6 (diff) | |
some fixes and removed obsolete code
Diffstat (limited to 'src/usvfsconnector.cpp')
| -rw-r--r-- | src/usvfsconnector.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/usvfsconnector.cpp b/src/usvfsconnector.cpp index 62145475..a29d806e 100644 --- a/src/usvfsconnector.cpp +++ b/src/usvfsconnector.cpp @@ -22,6 +22,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include <memory> #include <QTemporaryFile> #include <QProgressDialog> +#include <QDateTime> #include <QCoreApplication> @@ -53,10 +54,13 @@ extern "C" DLLEXPORT void __cdecl InitHooks(LPVOID userData, size_t userDataSize LogWorker::LogWorker() : m_Buffer(1024, '\0') , m_QuitRequested(false) - , m_LogFile(qApp->property("dataPath").toString() + "/logs/usvfs.log") + , m_LogFile(qApp->property("dataPath").toString() + + QString("/logs/usvfs-%1.log").arg( + QDateTime::currentDateTimeUtc().toString("yyyy-MM-dd_hh-mm-ss"))) { m_LogFile.open(QIODevice::WriteOnly); - qDebug("usvfs log messages are written to %s", qPrintable(m_LogFile.fileName())); + qDebug("usvfs log messages are written to %s", + qPrintable(m_LogFile.fileName())); } LogWorker::~LogWorker() |
