A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
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

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

Macros

#define NS_LOG_APPEND_CONTEXT
 File-local context string.
 

Functions

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

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.