csnemes / tracer

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

Regex support for method names #76

Closed ndrwrbgs closed 5 years ago

ndrwrbgs commented 5 years ago

In my scenario - it was tracing far too verbosely on some property getters/setters for our command line arguments object. Is there a way that I can direct in the config file to ignore certain method names -- e.g. what I'd like to do is something like

<NoTrace className="Arguments" methodName="get_.*" />
<NoTrace className="Arguments" methodName="set_.*" />
ndrwrbgs commented 5 years ago

It looks like https://github.com/csnemes/tracer/tree/pattern-matching will handle this

csnemes commented 5 years ago

Just released 3.0.0-beta (the pattern-matching branch). Give it a try.

ndrwrbgs commented 5 years ago

traceProperties="false" even did it for me, thanks :)