Merge pull request #15163 from keymanapp/change/windows/use-circular-buffer-for-logging

change(windows): use circular buffer for logging
This commit is contained in:
Marc Durdin 2025-11-17 17:02:34 +01:00 committed by GitHub
commit 149aef4cb5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);