Bug 190

Summary: Reminder: NS_LOG_APPEND_CONTEXT
Product: ns-3 Reporter: Gustavo J. A. M. Carneiro <gjcarneiro>
Component: coreAssignee: Faker Moatamri <faker.moatamri>
Status: NEW ---    
Severity: enhancement CC: faker.moatamri, ns-bugs, tomh
Priority: P5    
Version: pre-release   
Hardware: All   
OS: All   

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=, 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...