ndn::util Namespace Reference

Namespaces

 detail
 
 log
 

Classes

class  IndentedStream
 Output to stream with specified indent or prefix. More...
 
class  Logger
 Represents a log module in the logging facility. More...
 
class  Logging
 Controls the logging facility. More...
 
class  NotificationStream
 A facility to publish notifications. More...
 
class  NotificationSubscriber
 Provides the subscriber side of a Notification Stream. More...
 
class  NotificationSubscriberBase
 
class  RttEstimator
 RTT/RTO estimator. More...
 
class  RttEstimatorWithStats
 RTT/RTO estimator that also maintains min/max/average RTT statistics. More...
 
class  Sha256
 Provides stateful SHA-256 digest calculation. More...
 
class  Sqlite3Statement
 Wrap an SQLite3 prepared statement. More...
 

Enumerations

enum class  LogLevel {
  FATAL = -1 ,
  NONE = 0 ,
  ERROR = 1 ,
  WARN = 2 ,
  INFO = 3 ,
  DEBUG = 4 ,
  TRACE = 5 ,
  ALL = 255
}
 Indicates the severity level of a log message. More...
 

Functions

std::ostream & operator<< (std::ostream &os, LogLevel level)
 Output LogLevel as a string. More...
 
std::ostream & operator<< (std::ostream &os, Sha256 &digest)
 
LogLevel parseLogLevel (std::string_view s)
 Parse LogLevel from a string. More...
 

Variables

constexpr LogLevel INITIAL_DEFAULT_LEVEL = LogLevel::NONE
 

Enumeration Type Documentation

◆ LogLevel

enum ndn::util::LogLevel
strong

Indicates the severity level of a log message.

Enumerator
FATAL 

fatal (will be logged unconditionally)

NONE 

no messages

ERROR 

serious error messages

WARN 

warning messages

INFO 

informational messages

DEBUG 

debug messages

TRACE 

trace messages (most verbose)

ALL 

all messages

Definition at line 45 of file logger.hpp.

Function Documentation

◆ operator<<() [1/2]

std::ostream & ndn::util::operator<< ( std::ostream &  os,
LogLevel  level 
)

Output LogLevel as a string.

Exceptions
std::invalid_argumentUnknown level

Definition at line 27 of file logger.cpp.

◆ operator<<() [2/2]

std::ostream & ndn::util::operator<< ( std::ostream &  os,
Sha256 digest 
)

Definition at line 140 of file sha256.cpp.

◆ parseLogLevel()

LogLevel ndn::util::parseLogLevel ( std::string_view  s)

Parse LogLevel from a string.

Exceptions
std::invalid_argumentUnknown level name

Definition at line 53 of file logger.cpp.

Variable Documentation

◆ INITIAL_DEFAULT_LEVEL

constexpr LogLevel ndn::util::INITIAL_DEFAULT_LEVEL = LogLevel::NONE
constexpr

Definition at line 77 of file logging.cpp.