Skip to content

HeikoWitthoeft/tracer

 
 

Repository files navigation

Tracer 1.2.4

Tracing and logging rewriter using Fody. It adds trace enter and trace leave log entries for the methods specified. Such calls include incoming and outgoing arguments as well as time spent in the method. It also rewrites static log entries to properly configured log calls. Tracer is the rewriter core on which one of the specific adapters like Tracer.Log4Net is built uppon. Creating custom adapters for your specific needs is very easy. See Wiki for details.

Should you have any question/problem send an email to [email protected] or add an issue/request.

Compatibility:

  • .NET Framework 4.0+

To install:

  • using NuGet: Install-Package Tracer.Log4Net.Fody
  • build and use the binaries

To build:

Use Visual Studio 2013 or higher

Version History for Tracer:

  • 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 adapters
  • 1.2.4 - Added option to trace log constructors with traceConstructors flag. Just add traceConstructors="true" to Tracer element in weaver config file.

Version History for Tracer.Log4Net:

  • 1.0.0 Initial release
  • 1.1.0
    • Log4Net adapter uses the log4net rendering mechanism when logging arguments
  • 1.1.1
    • Modified message now contains method name.
    • Added custom properties to support different logging format requirements.
  • 1.2.0
    • Internal changes to support the changed TraceLeave signature
  • 1.2.1
    • Updated to log4net package 2.0.5
  • 1.2.2
    • Updated to Fody 1.29.4

Notes:

About

Tracing rewriter using Fody

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 98.3%
  • PowerShell 1.7%