Bugzilla – Bug 190
Reminder: NS_LOG_APPEND_CONTEXT
Last modified: 2010-02-21 16:04:39 EST
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.
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)
I think it may be pointless to keep this bug open. It's not a bug, it's more of a development goal...