|
Bugzilla – Full Text Bug Listing |
| Summary: | Reminder: NS_LOG_APPEND_CONTEXT | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Gustavo J. A. M. Carneiro <gjcarneiro> |
| Component: | core | Assignee: | 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 UTC
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... |