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);
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(),
GetCurrentProcessId(),
systemTime.wYear,
systemTime.wMonth,
systemTime.wDay,
systemTime.wHour,
systemTime.wMinute,
systemTime.wSecond );
systemTime.wSecond,
GetCurrentProcessId() );
if (FAILED(hr))
{
goto Finished;