jonwagner / EventSourceProxy

EventSourceProxy (ESP) is the easiest way to add scalable Event Tracing for Windows (ETW) logging to your .NET program
Other
97 stars 20 forks source link

Support for Func-Parameter #54

Closed mjeanrichard closed 3 years ago

mjeanrichard commented 8 years ago

It would be very nice if I could pass a Func<string> to a log method which would only be evaluated (and logged) when the Event is enabled. Is this already possible? If not, could this feature be added?

Thanks a lot for your great work!

jonwagner commented 3 years ago

I'm not totally sure how this is different from the trace parameter providers, but let me know and I'll add to it. I'll be releasing version 4.0.0 shortly.