Skip to content
This repository was archived by the owner on May 11, 2024. It is now read-only.

Commit f999403

Browse files
committed
feat: end to end tracing enabled via installer
1 parent 387acbf commit f999403

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

SMLogging.Setup/Product.wxs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
</Feature>
2727
<Feature Id="RequestLoggingMachineConfigFeature" Title="Register request logging in machine.config" Level="1"/>
2828
<Feature Id="ErrorLoggingMachineConfigFeature" Title="Register error logging in machine.config" Level="1"/>
29-
29+
<Feature Id="EnableETETracingMachineConfigFeature" Title="Enable end to end tracing in machine.config" Level="1"/>
30+
3031
<Binary Id="SMLogging.Setup.CustomActions.CA.dll" SourceFile="..\SMLogging.Setup.CustomActions\bin\$(var.Configuration)\SMLogging.Setup.CustomActions.CA.dll"/>
3132

3233
<CustomAction Id="SetInstallRequestLoggingMachinConfigData" Property="InstallRequestLoggingMachinConfig" Value="RequestLoggingPathRoot=[REQUESTLOGGINGPATHROOT];RequestLoggingPath=[REQUESTLOGGINGPATH];RequestLoggingRollingMode=[REQUESTLOGGINGROLLINGMODE];RequestLoggingRollingInterval=[REQUESTLOGGINGROLLINGINTERVAL];RequestLoggingMaximumFileSize=[REQUESTLOGGINGMAXIMUMFILESIZE];RequestLoggingMaximumFileIndex=[REQUESTLOGGINGMAXIMUMFILEINDEX];CreateBufferedMessageCopy=[CREATEBUFFEREDMESSAGECOPY];IgnoreDispatchReplyMessage=[IGNOREDISPATCHREPLYMESSAGE];AddMessageIdRequestHeader=[ADDMESSAGEIDREQUESTHEADER];ProductVersion=[ProductVersion]"/>
@@ -35,6 +36,7 @@
3536
<CustomAction Id="SetInstallErrorLoggingMachinConfigData" Property="InstallErrorLoggingMachinConfig" Value="ErrorLoggingPathRoot=[ERRORLOGGINGPATHROOT];ErrorLoggingPath=[ERRORLOGGINGPATH];ErrorLoggingRollingMode=[ERRORLOGGINGROLLINGMODE];ErrorLoggingRollingInterval=[ERRORLOGGINGROLLINGINTERVAL];ErrorLoggingMaximumFileSize=[ERRORLOGGINGMAXIMUMFILESIZE];ErrorLoggingMaximumFileIndex=[ERRORLOGGINGMAXIMUMFILEINDEX];ProductVersion=[ProductVersion]"/>
3637
<CustomAction Id="InstallErrorLoggingMachinConfig" Return="check" Execute="deferred" Impersonate="no" BinaryKey="SMLogging.Setup.CustomActions.CA.dll" DllEntry="InstallErrorLoggingMachinConfig"/>
3738
<CustomAction Id="UninstallErrorLoggingMachinConfig" Return="check" Execute="deferred" Impersonate="no" BinaryKey="SMLogging.Setup.CustomActions.CA.dll" DllEntry="UninstallErrorLoggingMachinConfig"/>
39+
<CustomAction Id="EnableEndToEndTracingMachineConfig" Return="check" Execute="deferred" Impersonate="no" BinaryKey="SMLogging.Setup.CustomActions.CA.dll" DllEntry="EnableEndToEndTracingMachineConfig"/>
3840

3941
<InstallExecuteSequence>
4042
<Custom Action="SetInstallRequestLoggingMachinConfigData" After="InstallInitialize">
@@ -55,6 +57,9 @@
5557
<Custom Action="UninstallErrorLoggingMachinConfig" After="MsiUnpublishAssemblies">
5658
REMOVE="ALL"
5759
</Custom>
60+
<Custom Action="EnableEndToEndTracingMachineConfig" After="PublishProduct">
61+
<![CDATA[&EnableETETracingMachineConfigFeature=3]]>
62+
</Custom>
5863
</InstallExecuteSequence>
5964

6065
</Product>

0 commit comments

Comments
 (0)