开发者

Logging stack information

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.


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.


Check AQTime function trace profiler.


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


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜