Bug 190 - Reminder: NS_LOG_APPEND_CONTEXT
: Reminder: NS_LOG_APPEND_CONTEXT
Status: NEW
: ns-3
simulation core
: pre-release
: All All
: P2 normal
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2008-05-28 07:28 EDT by
Modified: 2009-11-24 06:09 EDT (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 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 From 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 From 2009-11-24 06:09:35 EDT -------
I think it may be pointless to keep this bug open.  It's not a bug, it's more
of a development goal...