4

Do you know any tool that can log what functions where called with what parameters ?

Not interested to write that code myself but thought that there maybe some tool that capable doing so ...

Thanks.

1
  • Profiles usually have that kind of information, although they are not for production use. What's the use case? I think that in the standard stack trace you miss the actual parameters value, no? Commented Jun 20, 2010 at 10:04

5 Answers 5

2

This is a typical example where aspect orient programming (AOP) can be used. Most AOP introductions show exactly that use-case (logging is the hello world of AOP). For example, have a look at this PostSharp introduction.

Sign up to request clarification or add additional context in comments.

Comments

0

Check AQTime function trace profiler.

Comments

0

Check out Gibraltar too. In particular, the GFeature aspect is exactly what you're looking for.

1 Comment

Great News: GIBRALTAR is now FREE!!! rocksolid.gibraltarsoftware.com/announcements/…
0

I agree with Martin that aspect-oriented programming is a great way to automatically trace method execution and log all parameters. Some logging libraries already come with support for AOP frameworks. For example, this article explains how to use PostSharp with our logging tool SmartInspect. There's also an example for Unity.

Comments

0

Runtime Flow (developed by me) logs .NET function calls and with simple parameters like strings and numbers.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.