Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ETW for logging and additional tracing #4632

Open
wixbot opened this issue Dec 28, 2014 · 1 comment
Open

Use ETW for logging and additional tracing #4632

wixbot opened this issue Dec 28, 2014 · 1 comment
Labels
burn feature wip WiX Improvement Proposal

Comments

@wixbot
Copy link

wixbot commented Dec 28, 2014

Currently, the logging in burn doesn't including logging form dutil because dutil.lib is linked before the log handler is overridden by engine.lib (and burn.exe). There's also a number of log messages - like all of PlanDump (which is only compiled and linked when #DEBUG is defin3ed) - that consume a lot of space and probably aren't useful for a number of scenarios.

Instead, we could use ETW for logging so that logs from dutil, engine/burn and anything using the dutil logging functions can write to a unified log. This also means we can split some of the strings - such as the vast majority of the Logging* helper functions - to mappings in the ETW manifest(s) and reduce the size of the executable for those strings that do not need to be included (if any).

This also has the advantage that trace listeners can gather additional details, like disk consumption upon certain events (like when a package install begins and ends - for which ETW recommends you write operations for) for measuring disk space consumption throughout the entire install, and other handlers for ETW events.

Events can also be written to the Windows Event Viewer, and some computationally-expensive events can be triggered only upon enabling of certain event sources. For functions like PlanDump, these can be entirely different manifests or sets or resources so that the EXE can always write them without the expensive of carrying all those string resources.

See the WIP for details.

Originally opened by heaths

@wixbot
Copy link
Author

wixbot commented Dec 29, 2014

WIP - once pulled and published - should be here: http://wixtoolset.org/development/wips/4632-use-etw-for-logging/

Originally posted by heaths

@wixbot wixbot added this to the v4.x milestone Dec 20, 2015
@rseanhall rseanhall modified the milestones: v4.x, v.Next May 8, 2021
@barnson barnson added the wip WiX Improvement Proposal label May 2, 2023
@barnson barnson removed this from the v.Future milestone May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
burn feature wip WiX Improvement Proposal
Projects
None yet
Development

No branches or pull requests

4 participants