A Discrete-Event Network Simulator
API
log-example.cc File Reference

Example program illustrating the various logging functions. More...

#include "ns3/core-module.h"
#include "ns3/network-module.h"
+ Include dependency graph for log-example.cc:

Go to the source code of this file.

Classes

class  anonymous_namespace{log-example.cc}::MyEventObject
 Simple object to aggregate to a node. More...
 

Namespaces

 anonymous_namespace{log-example.cc}
 Unnamed namespace for log-example.cc.
 

Macros

#define NS_LOG_APPEND_CONTEXT
 File-local context string. More...
 

Functions

void anonymous_namespace{log-example.cc}::FreeEvent ()
 A free function with logging. More...
 

Detailed Description

Example program illustrating the various logging functions.

Definition in file log-example.cc.

Macro Definition Documentation

◆ NS_LOG_APPEND_CONTEXT

#define NS_LOG_APPEND_CONTEXT
Value:
{ \
std::clog << "(local context) "; \
}

File-local context string.

Definition at line 28 of file log-example.cc.