Tracer.Fody
3.3.1
dotnet add package Tracer.Fody --version 3.3.1
NuGet\Install-Package Tracer.Fody -Version 3.3.1
<PackageReference Include="Tracer.Fody" Version="3.3.1"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add Tracer.Fody --version 3.3.1
#r "nuget: Tracer.Fody, 3.3.1"
// Install Tracer.Fody as a Cake Addin #addin nuget:?package=Tracer.Fody&version=3.3.1 // Install Tracer.Fody as a Cake Tool #tool nuget:?package=Tracer.Fody&version=3.3.1
Trace.Fody is an ILWeaver which adds trace enter and leave log entries to methods. Besides it rewrites static log calls to
instance calls adding method information to the call in order to avoid costly stack walks in the logger. This is a general rewriter which can be adapted to different logging frameworks, do not use it directly.
Use one of the existing adapters in your project like Tracer.Log4Net.Fody or build your own.
Learn more about Target Frameworks and .NET Standard.
-
- Fody (>= 4.2.1)
NuGet packages (13)
Showing the top 5 NuGet packages that depend on Tracer.Fody:
Package | Downloads |
---|---|
Tracer.OpenTracing.Fody
Tracer.Fody plugin for instrumenting with OpenTracing |
|
Xels.Bitcoin
Xels Bitcoin FullNode |
|
Xels.Bitcoin.Features.Consensus
Xels Bitcoin Features Consensus |
|
Xels.Bitcoin.Features.MemoryPool
Xels Bitcoin Features MemoryPool |
|
Xels.Bitcoin.Features.RPC
Xels Bitcoin Features RPC |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Tracer.Fody:
Repository | Stars |
---|---|
stratisproject/StratisBitcoinFullNode
Bitcoin full node in C#
|
Version | Downloads | Last updated |
---|---|---|
3.3.1 | 110,467 | 4/19/2020 |
3.3.0 | 6,938 | 3/5/2020 |
3.2.2 | 8,516 | 1/6/2020 |
3.2.1 | 1,879 | 12/7/2019 |
3.2.0 | 11,410 | 10/14/2019 |
3.1.0 | 25,967 | 5/27/2019 |
3.0.0 | 4,449 | 3/19/2019 |
3.0.0-beta3 | 2,057 | 3/1/2019 |
3.0.0-beta2 | 1,460 | 2/21/2019 |
3.0.0-beta | 1,853 | 2/18/2019 |
2.2.0 | 63,880 | 5/14/2018 |
2.0.0 | 4,227 | 11/5/2017 |
1.6.0 | 9,317 | 5/18/2017 |
1.5.0 | 16,264 | 4/18/2017 |
1.4.0 | 7,940 | 1/2/2017 |
1.3.1 | 3,113 | 8/24/2016 |
1.3.0 | 9,189 | 7/17/2016 |
1.2.4 | 3,134 | 4/14/2016 |
1.2.3 | 3,029 | 3/21/2016 |
1.2.2 | 2,966 | 3/19/2016 |
1.2.0 | 5,325 | 10/13/2015 |
1.1.1 | 2,786 | 8/19/2015 |
1.1.0 | 3,221 | 6/7/2015 |
1.0.0 | 2,908 | 5/17/2015 |
* 1.0.0
Initial release
* 1.1.0
- Trace leave now logs when a method is exited with an exception
- Bug fix on static log rewrites
- Tracer now creates verifiable code
* 1.1.1
- Fixed static log rewrite for constructors and closures/lambdas
* 1.2.0
- In the configuration TraceOn target value extended with 'none' which means no tracing by default
- Changed TraceLeave signature to receive start and end ticks instead of elapsed ticks
* 1.2.2
- Updated to Fody 1.29.4
* 1.2.3
- Added support for strong named custom adapter assemblies
* 1.2.4
- Added option to trace log constructors with traceConstructors flag.
* 1.3.0
- Static log rewrite now supports rewriting static property getters (e.g one can use Log.IsDebug to avoid costly calls)
- Fix: Static constructors are excluded from tracing
- Assembly level xml trace configuration is extended. Multiple TraceOn and NoTrace elements can be specified. Both supports
namespace attribute which defines the scope of the configuration set. See documentation for more details.
- property getter/setter rewriting can be turned off using traceProperties flag in xml configuration
- NoTrace and TraceOn attributes now can be also applied on properties
* 1.3.1
- bug fix: on some machines resolving method reference of static log methods did not work properly
* 1.4.0
- added support for rewriting static generic log methods (fully instantiated case)
* 1.5.0
- Added support for trace logging async methods
* 1.6.0
- Updated dependency to Fody 2.x
* 2.0.0
- Moved to netstandard 2.0
* 2.2.0
- Updated dependency to Fody 3.x
* 3.0.0
- Fixed issue with missing local function extra parameter name
- Switched to new Fody package format, upgraded to Fody 3.3.x
- Added pattern based filter for specifying which methods to trace
- Fixed generic async rewrite issues causing PEVerify errors
- Added the possibility to pass in extra configuration parameters to trace enter and leave methods (breaks signature)
* 3.1.0
- fixed pattern filter sorting bug
- added pattern filter order logging on weaving
- removed generated labda method logging
- prettified local func method name in logging
- Updated to Fody 4.x
* 3.2.0
- fixed call context problem with async methods
- added disabled attribute to turn off tracer weaving completely
- fixed error when tracing ref struct method parameters
- removed Fody reference cap. Please beware that using Fody 5.x or higher generates warning
* 3.3.0
- NoTrace can be applied to method parameters
- NoReturnTrace attribute to skip return value logging
- Various bug fixes