ns3::LogComponent and related implementations. More...
#include "log.h"
#include <list>
#include <utility>
#include <iostream>
#include "assert.h"
#include <stdexcept>
#include "ns3/core-config.h"
#include "fatal-error.h"
#include <cstdlib>
#include <cstring>
Go to the source code of this file.
Classes | |
class | ns3::PrintList |
Handler for print-list token in NS_LOG to print the list of log components. More... | |
Namespaces | |
ns3 | |
Every class exported by the ns3 library is enclosed in the ns3 namespace. | |
Functions | |
static void | ns3::CheckEnvironmentVariables (void) |
Parse the NS_LOG environment variable. More... | |
static bool | ns3::ComponentExists (std::string componentName) |
Check if a log component exists. More... | |
LogComponent & | ns3::GetLogComponent (const std::string name) |
Get the LogComponent registered with the given name. More... | |
void | ns3::LogComponentDisable (char const *name, enum LogLevel level) |
Disable the logging output associated with that log component. More... | |
void | ns3::LogComponentDisableAll (enum LogLevel level) |
Disable all logging for all components. More... | |
void | ns3::LogComponentEnable (char const *name, enum LogLevel level) |
Enable the logging output associated with that log component. More... | |
void | ns3::LogComponentEnableAll (enum LogLevel level) |
Enable the logging output for all registered log components. More... | |
void | ns3::LogComponentPrintList (void) |
Print the list of logging messages available. More... | |
NodePrinter | ns3::LogGetNodePrinter (void) |
Get the LogNodePrinter function currently in use. More... | |
TimePrinter | ns3::LogGetTimePrinter (void) |
Get the LogTimePrinter function currently in use. More... | |
void | ns3::LogSetNodePrinter (NodePrinter np) |
Set the LogNodePrinter function to be used to prepend log messages with the node id. More... | |
void | ns3::LogSetTimePrinter (TimePrinter lp) |
Set the TimePrinter function to be used to prepend log messages with the simulation time. More... | |
template<> | |
ParameterLogger & | ns3::ParameterLogger::operator<<< std::string > (const std::string param) |
Specialization for strings. More... | |
Variables | |
static NodePrinter | ns3::g_logNodePrinter = 0 |
The Log NodePrinter. More... | |
static TimePrinter | ns3::g_logTimePrinter = 0 |
The Log TimePrinter. More... | |
static PrintList | ns3::g_printList |
Invoke handler for print-list in NS_LOG environment variable. More... | |
ns3::LogComponent and related implementations.
Definition in file log.cc.