csnemes / tracer

Tracing rewriter using Fody
Apache License 2.0
93 stars 26 forks source link

How to setup tracer? #104

Open Aleksaas opened 3 years ago

Aleksaas commented 3 years ago

In documentation it just says that nuget package needs to be installed and that it will work automatically, but its not working. Do I need to configure something?

audryste commented 3 years ago

It is related to fody have you set up configuration file FodyWeavers.xml ?? Example: https://github.com/csnemes/tracer/blob/master/TestApplication.NLog/FodyWeavers.xml

ndrwrbgs commented 2 years ago

It looks like you're right @Aleksaas , the docs may need some massaging. Some details are here - but there are some new On/Off formatting possible.

https://github.com/csnemes/tracer/wiki/Basics#fodyweaverxml-configuration-in-details

I don't have time to send doc updates right now, but @audryste is correct that you'll install the nuget package directly and then add a FodyWeavers.xml file. (There was a time when this was added for you in the Fody ecosystem but I believe nuget/.NET changed some policies that now prevent doing that).