#include "ns3/log.h"
Go to the source code of this file.
Namespaces | |
ndn | |
Copyright (c) 2011-2015 Regents of the University of California. | |
ndn::util | |
ndn::util::detail | |
Macros | |
#define | NDN_LOG_INIT(name) NS_LOG_COMPONENT_DEFINE("ndn-cxx." BOOST_STRINGIZE(name)) |
declare a log module More... | |
#define | NDN_LOG_MEMBER_DECL() static ::ns3::LogComponent g_log |
#define | NDN_LOG_MEMBER_INIT(cls, name) ::ns3::LogComponent cls::g_log = ::ns3::LogComponent("ndn-cxx." BOOST_STRINGIZE(name), __FILE__) |
#define | NDN_LOG_MEMBER_DECL_SPECIALIZED(cls) static ::ns3::LogComponent g_log |
#define | NDN_LOG_MEMBER_INIT_SPECIALIZED(cls, name) |
#define | NDN_LOG_TRACE(expression) NS_LOG_LOGIC(expression) |
#define | NDN_LOG_DEBUG(expression) NS_LOG_DEBUG(expression) |
#define | NDN_LOG_INFO(expression) NS_LOG_INFO(expression) |
#define | NDN_LOG_WARN(expression) NS_LOG_ERROR(expression) |
#define | NDN_LOG_ERROR(expression) NS_LOG_WARN(expression) |
#define | NDN_LOG_FATAL(expression) NS_LOG_FATAL(expression) |
Enumerations | |
enum | ndn::util::LogLevel { ndn::util::LogLevel::FATAL = -1, ndn::util::LogLevel::NONE = 0, ndn::util::LogLevel::ERROR = 1, ndn::util::LogLevel::WARN = 2, ndn::util::LogLevel::INFO = 3, ndn::util::LogLevel::DEBUG = 4, ndn::util::LogLevel::TRACE = 5, ndn::util::LogLevel::ALL = 255 } |
Indicates the severity level of a log message. More... | |
Functions | |
std::ostream & | ndn::util::operator<< (std::ostream &os, LogLevel level) |
Output LogLevel as a string. More... | |
LogLevel | ndn::util::parseLogLevel (const std::string &s) |
Parse LogLevel from a string. More... | |
#define NDN_LOG_INIT | ( | name | ) | NS_LOG_COMPONENT_DEFINE("ndn-cxx." BOOST_STRINGIZE(name)) |
declare a log module
Definition at line 81 of file logger.hpp.
#define NDN_LOG_MEMBER_DECL | ( | ) | static ::ns3::LogComponent g_log |
Definition at line 83 of file logger.hpp.
#define NDN_LOG_MEMBER_INIT | ( | cls, | |
name | |||
) | ::ns3::LogComponent cls::g_log = ::ns3::LogComponent("ndn-cxx." BOOST_STRINGIZE(name), __FILE__) |
Definition at line 86 of file logger.hpp.
#define NDN_LOG_MEMBER_DECL_SPECIALIZED | ( | cls | ) | static ::ns3::LogComponent g_log |
Definition at line 91 of file logger.hpp.
#define NDN_LOG_MEMBER_INIT_SPECIALIZED | ( | cls, | |
name | |||
) |
Definition at line 94 of file logger.hpp.
#define NDN_LOG_TRACE | ( | expression | ) | NS_LOG_LOGIC(expression) |
Definition at line 98 of file logger.hpp.
Referenced by ndn::security::v2::validator_config::Rule::check(), ndn::net::computePrefixLength(), ndn::security::v2::DynamicTrustAnchorGroup::DynamicTrustAnchorGroup(), ndn::net::GenlFamilyResolver::GenlFamilyResolver(), ndn::net::NetworkMonitorImplNetlink::listNetworkInterfaces(), ndn::security::v2::validator_config::Rule::match(), ndn::net::NetlinkSocket::nlmsgTypeToString(), ndn::net::NetlinkSocket::open(), ndn::net::RtnlSocket::open(), ndn::net::GenlSocket::open(), ndn::security::v2::parseLocatorUri(), ndn::security::v2::DynamicTrustAnchorGroup::refresh(), ndn::net::RtnlSocket::sendDumpRequest(), ndn::net::GenlSocket::sendRequest(), ndn::net::updateInterfaceState(), and ndn::security::v2::ValidationState::~ValidationState().
#define NDN_LOG_DEBUG | ( | expression | ) | NS_LOG_DEBUG(expression) |
Definition at line 99 of file logger.hpp.
Referenced by ndn::net::NetworkInterface::addNetworkAddress(), ndn::net::computePrefixLength(), ndn::security::v2::KeyChain::createIdentity(), ndn::security::v2::KeyChain::createKey(), ndn::Face::Impl::expressInterest(), ndn::extractLpLocalFields(), ndn::net::GenlFamilyResolver::GenlFamilyResolver(), ndn::security::pib::Pib::getDefaultIdentity(), ndn::security::v2::CertificateCache::insert(), ndn::net::NetworkMonitorImplNetlink::listNetworkInterfaces(), ndn::net::NetworkMonitorImplOsx::listNetworkInterfaces(), ndn::Face::Impl::nackPendingInterests(), ndn::net::NetlinkSocket::nlmsgTypeToString(), ndn::net::NetlinkSocket::open(), ndn::Face::Impl::putData(), ndn::Face::Impl::putNack(), ndn::net::NetworkInterface::removeNetworkAddress(), ndn::Face::Impl::satisfyPendingInterests(), ndn::security::pib::Pib::setDefaultIdentity(), ndn::Face::Impl::shutdown(), and ndn::net::updateInterfaceState().
#define NDN_LOG_INFO | ( | expression | ) | NS_LOG_INFO(expression) |
Definition at line 100 of file logger.hpp.
Referenced by ndn::security::v2::CertificateCache::find(), ndn::Face::Impl::registerPrefix(), ndn::Face::Impl::setInterestFilter(), and ndn::Face::Impl::shutdown().
#define NDN_LOG_WARN | ( | expression | ) | NS_LOG_ERROR(expression) |
#define NDN_LOG_ERROR | ( | expression | ) | NS_LOG_WARN(expression) |
Definition at line 102 of file logger.hpp.
Referenced by ndn::net::NetlinkSocket::nlmsgTypeToString(), ndn::mgmt::Dispatcher::removeTopPrefix(), ndn::net::RtnlSocket::sendDumpRequest(), ndn::net::GenlSocket::sendRequest(), and ndn::net::updateInterfaceState().
#define NDN_LOG_FATAL | ( | expression | ) | NS_LOG_FATAL(expression) |
Definition at line 103 of file logger.hpp.