Skip to content

Commit

Permalink
Change log extension to .log
Browse files Browse the repository at this point in the history
  • Loading branch information
Dijji committed May 3, 2020
1 parent be1c0f5 commit ecff245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PropertyHandler/PropertyHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void WriteLog(const WCHAR* fmt, ...)
if (!DirectoryExists(path) &&
!CreateDirectory(path.c_str(), NULL))
return; // Maybe throw an exception?
std::wstring filePath = path + L"\\log_" + getCurrentDateTime(L"date") + L".txt";
std::wstring filePath = path + L"\\log_" + getCurrentDateTime(L"date") + L".log";
std::wofstream ofs(filePath.c_str(), std::ios_base::out | std::ios_base::app);
std::wstring now = getCurrentDateTime(L"now");
ofs << now << L" " << buffer << L'\n';
Expand Down

0 comments on commit ecff245

Please sign in to comment.