Ajay
Ajay

Reputation: 1

Generating Intellitrace log file for Azure Service Fabric On Premise

We have services (stateful/stateless) running on premise with 5 nodes cluster. In production environment, I would like to log diagnostic events/trace event into log file for further analyze in VS 2019 Enterprise edition.

How do I achieve that, as I can't find collection method such as

{
Start-IntelliTraceCollection "FabrikamFiber.Extranet.Web" c:\IntelliTrace\collection_plan.ASP.NET.trace.xml c:\LogFileLocation
}

Upvotes: 0

Views: 49

Answers (1)

Mao
Mao

Reputation: 107

The command "Start-IntelliTraceCollection" is in the IntelliTrace standalone package https://learn.microsoft.com/en-us/visualstudio/debugger/using-the-intellitrace-stand-alone-collector?view=vs-2019.

That means 1. Upload the standalone package to your nodes. 2. Import the powershell module Import-Module "C:\IntelliTraceCollector\Microsoft.VisualStudio.IntelliTrace.PowerShell.dll" 3. Then you can use the command you post.

Be aware that the powershell module works for web application and sharepoint application.

For other types of application, you can use IntelliTraceCollectorIntelliTraceSC.exe

You should find more details from the above link.

Upvotes: 0

Related Questions