#include "ndn-cxx/detail/common.hpp"#include <boost/log/common.hpp>#include <boost/log/expressions/keyword.hpp>#include <boost/log/sources/severity_logger.hpp>#include <atomic> Include dependency graph for logger.hpp:
 Include dependency graph for logger.hpp: This graph shows which files directly or indirectly include this file:
 This graph shows which files directly or indirectly include this file:Go to the source code of this file.
| Classes | |
| class | ndn::util::Logger | 
| Represents a log module in the logging facility.  More... | |
| Namespaces | |
| ndn | |
| ndn::util | |
| ndn::util::detail | |
| ndn::util::log | |
| Macros | |
| #define | NDN_LOG_DEBUG(expression) NDN_LOG_INTERNAL(DEBUG, expression) | 
| Log at DEBUG level.  More... | |
| #define | NDN_LOG_ERROR(expression) NDN_LOG_INTERNAL(ERROR, expression) | 
| Log at ERROR level.  More... | |
| #define | NDN_LOG_FATAL(expression) NDN_LOG_INTERNAL(FATAL, expression) | 
| Log at FATAL level.  More... | |
| #define | NDN_LOG_INFO(expression) NDN_LOG_INTERNAL(INFO, expression) | 
| Log at INFO level.  More... | |
| #define | NDN_LOG_INIT(name) | 
| Define a non-member log module.  More... | |
| #define | NDN_LOG_MEMBER_DECL() | 
| Declare a member log module, without initializing it.  More... | |
| #define | NDN_LOG_MEMBER_DECL_SPECIALIZED(cls) | 
| Declare an explicit specialization of a member log module of a class template.  More... | |
| #define | NDN_LOG_MEMBER_INIT(cls, name) | 
| Initialize a member log module.  More... | |
| #define | NDN_LOG_MEMBER_INIT_SPECIALIZED(cls, name) | 
| Define an explicit specialization of a member log module of a class template.  More... | |
| #define | NDN_LOG_TRACE(expression) NDN_LOG_INTERNAL(TRACE, expression) | 
| Log at TRACE level.  More... | |
| #define | NDN_LOG_WARN(expression) NDN_LOG_INTERNAL(WARN, expression) | 
| Log at WARN level.  More... | |
| 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_DEBUG | ( | expression | ) | NDN_LOG_INTERNAL(DEBUG, expression) | 
Log at DEBUG level.
Definition at line 262 of file logger.hpp.
| #define NDN_LOG_ERROR | ( | expression | ) | NDN_LOG_INTERNAL(ERROR, expression) | 
Log at ERROR level.
Definition at line 277 of file logger.hpp.
| #define NDN_LOG_FATAL | ( | expression | ) | NDN_LOG_INTERNAL(FATAL, expression) | 
Log at FATAL level.
Definition at line 282 of file logger.hpp.
| #define NDN_LOG_INFO | ( | expression | ) | NDN_LOG_INTERNAL(INFO, expression) | 
Log at INFO level.
Definition at line 267 of file logger.hpp.
| #define NDN_LOG_INIT | ( | name | ) | 
Define a non-member log module.
This macro can be used in global scope to define a log module for an entire translation unit, or in namespace scope to define a log module for the enclosing namespace. Use NDN_LOG_MEMBER_INIT to define a log module as a class or struct member.
| name | the logger name | 
~, #, %, _, <, >, ., -. It must not start or end with a dot (.), or contain multiple consecutive dots. Definition at line 163 of file logger.hpp.
| #define NDN_LOG_MEMBER_DECL | ( | ) | 
Declare a member log module, without initializing it.
This macro should only be used to declare a log module as a class or struct member. It is recommended to place this macro in the private or protected section of the class or struct definition. Use NDN_LOG_INIT to declare a non-member log module.
If the enclosing class is a template, this macro can be used in conjunction with NDN_LOG_MEMBER_DECL_SPECIALIZED and NDN_LOG_MEMBER_INIT_SPECIALIZED to provide different loggers for different template specializations.
Definition at line 181 of file logger.hpp.
| #define NDN_LOG_MEMBER_DECL_SPECIALIZED | ( | cls | ) | 
Declare an explicit specialization of a member log module of a class template.
| cls | fully specialized class name; wrap in parentheses if it contains commas | 
Definition at line 209 of file logger.hpp.
| #define NDN_LOG_MEMBER_INIT | ( | cls, | |
| name | |||
| ) | 
Initialize a member log module.
This macro should only be used to initialize a previously declared member log module. It must be placed in a .cpp file (NOT in a header file), in the same namespace as the class or struct that contains the log module.
| cls | class name; wrap in parentheses if it contains commas | 
| name | the logger name | 
~, #, %, _, <, >, ., -. It must not start or end with a dot (.), or contain multiple consecutive dots. Definition at line 198 of file logger.hpp.
| #define NDN_LOG_MEMBER_INIT_SPECIALIZED | ( | cls, | |
| name | |||
| ) | 
Define an explicit specialization of a member log module of a class template.
This macro must be placed in a .cpp file (NOT in a header file), in the same namespace as the class template that contains the log module.
| cls | fully specialized class name; wrap in parentheses if it contains commas | 
| name | the logger name | 
~, #, %, _, <, >, ., -. It must not start or end with a dot (.), or contain multiple consecutive dots. Definition at line 226 of file logger.hpp.
| #define NDN_LOG_TRACE | ( | expression | ) | NDN_LOG_INTERNAL(TRACE, expression) | 
Log at TRACE level.
Definition at line 257 of file logger.hpp.
| #define NDN_LOG_WARN | ( | expression | ) | NDN_LOG_INTERNAL(WARN, expression) | 
Log at WARN level.
Definition at line 272 of file logger.hpp.