Bug 190 - Reminder: NS_LOG_APPEND_CONTEXT
Reminder: NS_LOG_APPEND_CONTEXT
Status: NEW
Product: ns-3
Classification: Unclassified
Component: core
pre-release
All All
: P5 enhancement
Assigned To: Faker Moatamri
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-05-28 07:28 EDT by Gustavo J. A. M. Carneiro
Modified: 2010-02-21 16:04 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gustavo J. A. M. Carneiro 2008-05-28 07:28:17 EDT
Mathieu committed NS_LOG_APPEND_CONTEXT: http://code.nsnam.org/ns-3-dev/rev/ea368d066bea

But this patch is just the tip of the iceberg.  The bulk of the work is still left to do.
Comment 1 Tom Henderson 2009-10-20 12:38:29 EDT
Reminder on typical usage:

#define NS_LOG_APPEND_CONTEXT                                   \
  if (GetObject<Node> ()) { std::clog << "[node " << GetObject<Node> ()->GetId () << "] "; }

Prints out a "[node %d]" in the log output, such as in OlsrAgent:

28.3839s [node 3] Looking at neighbor tuple: NeighborTuple(neighborMainAddr=10.1.1.2, status=SYM, willingness=3)
Comment 2 Gustavo J. A. M. Carneiro 2009-11-24 06:09:35 EST
I think it may be pointless to keep this bug open.  It's not a bug, it's more of a development goal...