A Discrete-Event Network Simulator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
log.h File Reference
#include <string>
#include <iostream>
#include <stdint.h>
#include <map>
+ Include dependency graph for log.h:

Go to the source code of this file.


class  ns3::LogComponent
class  ns3::ParameterLogger


 Every class exported by the ns3 library is enclosed in the ns3 namespace.


#define NS_LOG(level, msg)
 Append the function name to a log message. More...
 Append the log severity level to a log message. More...
 Append the simulation node id to a log message. More...
 Append the simulation time to a log message. More...
#define NS_LOG_COMPONENT_DEFINE(name)   static ns3::LogComponent g_log = ns3::LogComponent (name)
#define NS_LOG_DEBUG(msg)   NS_LOG (ns3::LOG_DEBUG, msg)
#define NS_LOG_ERROR(msg)   NS_LOG (ns3::LOG_ERROR, msg)
#define NS_LOG_FUNCTION(parameters)
 Output the name of the function. More...
#define NS_LOG_INFO(msg)   NS_LOG (ns3::LOG_INFO, msg)
#define NS_LOG_LOGIC(msg)   NS_LOG (ns3::LOG_LOGIC, msg)
#define NS_LOG_UNCOND(msg)
#define NS_LOG_WARN(msg)   NS_LOG (ns3::LOG_WARN, msg)


typedef void(* ns3::LogNodePrinter )(std::ostream &os)
typedef void(* ns3::LogTimePrinter )(std::ostream &os)


enum  ns3::LogLevel {
  ns3::LOG_NONE = 0x00000000, ns3::LOG_ERROR = 0x00000001, ns3::LOG_LEVEL_ERROR = 0x00000001, ns3::LOG_WARN = 0x00000002,
  ns3::LOG_LEVEL_WARN = 0x00000003, ns3::LOG_DEBUG = 0x00000004, ns3::LOG_LEVEL_DEBUG = 0x00000007, ns3::LOG_INFO = 0x00000008,
  ns3::LOG_LEVEL_INFO = 0x0000000f, ns3::LOG_FUNCTION = 0x00000010, ns3::LOG_LEVEL_FUNCTION = 0x0000001f, ns3::LOG_LOGIC = 0x00000020,
  ns3::LOG_LEVEL_LOGIC = 0x0000003f, ns3::LOG_ALL = 0x0fffffff, ns3::LOG_LEVEL_ALL = LOG_ALL, ns3::LOG_PREFIX_FUNC = 0x80000000,
  ns3::LOG_PREFIX_TIME = 0x40000000, ns3::LOG_PREFIX_NODE = 0x20000000, ns3::LOG_PREFIX_LEVEL = 0x10000000, ns3::LOG_PREFIX_ALL = 0xf0000000
 Logging severity classes and levels. More...


void ns3::LogComponentDisable (char const *name, enum LogLevel level)
void ns3::LogComponentDisableAll (enum LogLevel level)
void ns3::LogComponentEnable (char const *name, enum LogLevel level)
void ns3::LogComponentEnableAll (enum LogLevel level)
void ns3::LogComponentPrintList (void)
 Print the list of logging messages available. More...
LogNodePrinter ns3::LogGetNodePrinter (void)
LogTimePrinter ns3::LogGetTimePrinter (void)
void ns3::LogSetNodePrinter (LogNodePrinter printer)
void ns3::LogSetTimePrinter (LogTimePrinter printer)

Macro Definition Documentation


Definition at line 227 of file log.h.