From c0cdb2ad99a1e2a6ade5ce76c91177a79258e669 Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:10:11 +0200 Subject: 3.14 --- shared/global_func.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'shared/global_func.cpp') diff --git a/shared/global_func.cpp b/shared/global_func.cpp index fe741b22..07a68187 100644 --- a/shared/global_func.cpp +++ b/shared/global_func.cpp @@ -17,7 +17,8 @@ size_t common::getDigitCount(size_t number) //count number of digits } //############################################################################ -DebugLog::DebugLog() : +DebugLog::DebugLog(const wxString& filePrefix) : + prefix(filePrefix), lineCount(0), logFile(NULL) { @@ -37,7 +38,7 @@ wxString DebugLog::assembleFileName() { wxString tmp = wxDateTime::Now().FormatISOTime(); tmp.Replace(wxT(":"), wxEmptyString); - return wxString(wxT("DEBUG_")) + wxDateTime::Now().FormatISODate() + wxChar('_') + tmp + wxT(".log"); + return prefix + wxString(wxT("DEBUG_")) + wxDateTime::Now().FormatISODate() + wxChar('_') + tmp + wxT(".log"); } -- cgit