Skip to content

Add CCM (CMTrace) log file format option#6284

Open
pl4nty wants to merge 1 commit into
microsoft:masterfrom
devicie:ccm-log-format
Open

Add CCM (CMTrace) log file format option#6284
pl4nty wants to merge 1 commit into
microsoft:masterfrom
devicie:ccm-log-format

Conversation

@pl4nty

@pl4nty pl4nty commented Jun 13, 2026

Copy link
Copy Markdown

📖 Description

Add a logging.format user setting that selects the format used when writing log entries to a file. The default winget value preserves the existing format, while ccm writes CCM-compatible lines so WinGet logs can be viewed with common IT admin tools (particularly CMTrace and OneTrace).

🔗 References

No issue for this one, but credit to @mjr4077au for the idea while we were chatting with chtulip.

🔍 Validation

Set logging.format to ccm, then opened some WinGetDev.exe logs with OneTrace and CMTrace

image image

Open Questions

  • Is this desirable? I wasn't able to find an open issue, but I've heard a few IT admins mention it
  • Would this change need a release note?
  • I suspect a Group Policy setting for this would be very useful, but maybe it should support the other logging options too

✅ Checklist

📋 Issue Type

  • Bug fix
  • Feature
  • Task
Microsoft Reviewers: Open in CodeFlow

Assisted-by: Claude:claude-4.8-opus
Signed-off-by: Tom Plant <tom.plant@devicie.com>
@pl4nty pl4nty requested a review from a team as a code owner June 13, 2026 12:00
FileLogger_MaximumSize_Test(tagState, sizeState);
}

TEST_CASE("FileLogger_CCMFormat", "[logging]")

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure this test and the new imports are necessary, since there isn't one for the existing format. Figured I'd submit just in case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant