Sortable log files with stdoutLogFile (#131)

Fixes #130
This commit is contained in:
Luke Latham 2017-08-30 16:33:30 -05:00 committed by pan-wang
parent d15129110e
commit 6b8449f491
1 changed files with 3 additions and 3 deletions

View File

@ -1204,15 +1204,15 @@ SERVER_PROCESS::SetupStdHandles(
} }
GetSystemTime(&systemTime); GetSystemTime(&systemTime);
hr = struLogFileName.SafeSnwprintf(L"%s_%d_%d%d%d%d%d%d.log", hr = struLogFileName.SafeSnwprintf(L"%s_%d%02d%02d%02d%02d%02d_%d.log",
struAbsLogFilePath.QueryStr(), struAbsLogFilePath.QueryStr(),
GetCurrentProcessId(),
systemTime.wYear, systemTime.wYear,
systemTime.wMonth, systemTime.wMonth,
systemTime.wDay, systemTime.wDay,
systemTime.wHour, systemTime.wHour,
systemTime.wMinute, systemTime.wMinute,
systemTime.wSecond ); systemTime.wSecond,
GetCurrentProcessId() );
if (FAILED(hr)) if (FAILED(hr))
{ {
goto Finished; goto Finished;