summaryrefslogtreecommitdiff
path: root/shared/global_func.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:10:11 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:10:11 +0200
commitc0cdb2ad99a1e2a6ade5ce76c91177a79258e669 (patch)
tree4701a015385d9a6a5a4ba99a8f1f5d400fff26b1 /shared/global_func.cpp
parent3.13 (diff)
downloadFreeFileSync-c0cdb2ad99a1e2a6ade5ce76c91177a79258e669.tar.gz
FreeFileSync-c0cdb2ad99a1e2a6ade5ce76c91177a79258e669.tar.bz2
FreeFileSync-c0cdb2ad99a1e2a6ade5ce76c91177a79258e669.zip
3.14
Diffstat (limited to 'shared/global_func.cpp')
-rw-r--r--shared/global_func.cpp5
1 files changed, 3 insertions, 2 deletions
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");
}
bgstack15