mxc-diagnostic-console: add --collect flag for log capture#307
Merged
jsidewhite merged 4 commits intoMay 15, 2026
Conversation
Add a --collect option to mxc-diagnostic-console that captures both verbose and minified log output to timestamped files in %TEMP%. - Creates mxc-diagnostics-YYYYMMDD-HHMMSS-PID/ with verbose.log and minified.log - ETW events decoded once via TDH, formatted independently for each mode - On Ctrl+C: flushes logs, zips folder via PowerShell Compress-Archive, prints paths - Second Ctrl+C forces immediate exit (escape hatch) - Refactored ETW decoding to split TDH property extraction from mode-dependent formatting Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
kanismohammed
approved these changes
May 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
--collectoption tomxc-diagnostic-console.exethat captures both verbose and minified diagnostic logs to files in%TEMP%, then zips them on exit.Add LearningModeViolations (eg. GUI accessed!)
Behavior
mxc-diagnostic-console.exe --collectcreates a folder ontaining:verbose.log-- full ETW event propertiesminified.log-- reduced ETW event propertiesCompress-Archive, and prints the pathsImplementation notes
minify_access_check_propsnow takes an explicitDisplayModeparameter instead of reading the global--collect --verbose(console shows verbose, both log formats still captured independently)Microsoft Reviewers: Open in CodeFlow