A Discrete-Event Network Simulator
API
Macros
log-macros-enabled.h File Reference

NS_LOG and related logging macro definitions. More...

Go to the source code of this file.

Macros

#define NS_LOG(level, msg)
 This macro allows you to log an arbitrary message at a specific log level. More...
 
#define NS_LOG_APPEND_CONTEXT
 Append the node id (or other file-local programmatic context, such as MPI rank) to a log message. More...
 
#define NS_LOG_APPEND_FUNC_PREFIX
 Append the function name to a log message. More...
 
#define NS_LOG_APPEND_LEVEL_PREFIX(level)
 Append the log severity level to a log message. More...
 
#define NS_LOG_APPEND_NODE_PREFIX
 Append the simulation node id to a log message. More...
 
#define NS_LOG_APPEND_TIME_PREFIX
 Append the simulation time to a log message. More...
 
#define NS_LOG_CONDITION
 Limit logging output based on some file-local condition, such as MPI rank. More...
 
#define NS_LOG_FUNCTION(parameters)
 If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ", ". More...
 
#define NS_LOG_FUNCTION_NOARGS()
 Output the name of the function. More...
 
#define NS_LOG_UNCOND(msg)
 Output the requested message unconditionally. More...
 

Detailed Description

NS_LOG and related logging macro definitions.

Definition in file log-macros-enabled.h.