6 Apr
2013
6 Apr
'13
6:30 a.m.
On Friday 05 April 2013 20:43:26 Anlin Zhang wrote:
Hi, I'm wondering if a "Scope Tracer" or a "General Scope Function" can be easily implemented with existing boost libraries now.
Boost.Log has support for the list of scopes, although it doesn't automatically emit a log record upon entering or leaving the scope and it doesn't capture the function arguments or variables. You would have to write a macro to do that, similar to the one you presented in your example. Here are more details: http://boost-log.sourceforge.net/libs/log/doc/html/log/detailed/attributes.h...