-
Notifications
You must be signed in to change notification settings - Fork 26
Getting started
To get started with using Tracer.Fody all you need to do is reference a Tracer adapter NuGet package (like Tracer.Log4Net.Fody) into your project. It will automatically bring in Tracer.Fody to do the actual weaving whenever you build the project.
Trace enter and leave calls will be added automatically to all public methods of public classes. As their name suggests trace enter and leave are trace level messages so once you configure the actual logger for trace level or lower the corresponding log entries will be there in the log. Trace enter writes information about the actual method and all its arguments. Trace leave logs the return value and the time spent in the method.
The whole reason for having this tracer weaver is that the logger doesn't need to do costly stack analysis to find out the location as it is embedded into the assembly. This speeds up the logging pretty much.