From 6b8449f4913c7b495c274f05e2450951a0f22896 Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Wed, 30 Aug 2017 16:33:30 -0500 Subject: [PATCH] Sortable log files with stdoutLogFile (#131) Fixes #130 --- src/AspNetCore/Src/serverprocess.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/AspNetCore/Src/serverprocess.cxx b/src/AspNetCore/Src/serverprocess.cxx index fe83e65a0d..3382000a55 100644 --- a/src/AspNetCore/Src/serverprocess.cxx +++ b/src/AspNetCore/Src/serverprocess.cxx @@ -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;