[Ns-developers] [ns3] logging
Mathieu Lacage
mathieu.lacage at sophia.inria.fr
Thu Apr 10 11:30:50 PDT 2008
On Thu, 2008-04-10 at 18:15 +0000, Tom Henderson wrote:
> I have another feature request, while we are on the topic, which is
> that it would be nice to have the logging output display simulation
> timestamp as well. I don't feel strongly about whether it is always
That is hard because the logging code is located in src/core/log.h|cc
while the simulation code is located in src/simulator/simulator.h and
the 'core' module is not supposed to depend on the 'simulator' module.
Maybe we could just add a couple of extra logging functions in
src/simulator/sim-log.h ?
NS_SIM_LOG_FUNCTION () et al ?
> on or optionally enabled, but as a user of the log output, I have
> found it difficult to associate log output with events for which I
> know the timestamp.
I have ended up using my own trace functions in the wifi code which wrap
NS_LOG_* and add the timestamp.
Mathieu
More information about the Ns-developers
mailing list