Monitoring ns-3 simulation steps and events using logging
ns-3 supports logging features for all its supported modules. Logging enables users to view various important details, such as the working of a protocol or an application, while executing their simulation. The ns-3 developers have included lots of useful logging statements in their modules, and ns-3 users can enable the logging details of the modules they're interested in in their simulation programs. In order to provide finer control over which logging statements are to be displayed during simulation execution, ns-3 supports the following levels of logging statements:
LOG_INFO
LOG_DEBUG
LOG_FUNCTION
LOG_WARN
LOG_ERROR
LOG_ASSERT
LOG_FATAL_ERROR
LOG_ALL
ns-3 users can select any level and display details in their simulations. Users can display all levels of logging statements of a particular module, by selecting the LOG_ALL
level for a particular module in their simulation program...