From bf4d707662989d5013135b56283c26e99eca2c6c Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Thu, 13 Nov 2025 14:46:12 +0100 Subject: [PATCH] change(windows): use circular buffer for logging Test-bot: skip --- .../src/global/delphi/debug/Keyman.System.DebugLogManager.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/src/global/delphi/debug/Keyman.System.DebugLogManager.pas b/windows/src/global/delphi/debug/Keyman.System.DebugLogManager.pas index 9937d476c3..52ad48dd52 100644 --- a/windows/src/global/delphi/debug/Keyman.System.DebugLogManager.pas +++ b/windows/src/global/delphi/debug/Keyman.System.DebugLogManager.pas @@ -149,7 +149,7 @@ begin pSessionProperties.Wnode.Flags := WNODE_FLAG_TRACED_GUID; pSessionProperties.Wnode.ClientContext := 1; //QPC clock resolution pSessionProperties.Wnode.Guid := SessionGuid; - pSessionProperties.LogFileMode := EVENT_TRACE_FILE_MODE_SEQUENTIAL; + pSessionProperties.LogFileMode := EVENT_TRACE_FILE_MODE_CIRCULAR; pSessionProperties.MaximumFileSize := 256; // 256 MB pSessionProperties.LoggerNameOffset := sizeof(EVENT_TRACE_PROPERTIES); pSessionProperties.LogFileNameOffset := sizeof(EVENT_TRACE_PROPERTIES) + sizeof(LOGSESSION_NAME);