Boost logo

Boost :

Subject: Re: [boost] Scope Tracer or General Scope Function with parameter or variable values
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2013-04-06 02:30:38


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.html#log.detailed.attributes.named_scope>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk