ndn::util Namespace Reference

Namespaces

 detail
 
 scheduler
 
 signal
 

Classes

class  CFReleaser
 Helper class to wrap CoreFoundation object pointers. More...
 
class  DummyClientFace
 a client-side face for unit testing More...
 
class  IndentedStream
 Output to stream with specified indent or prefix. More...
 
class  Logger
 represents a logger in logging facility More...
 
struct  LoggerTimestamp
 a tag that writes a timestamp upon stream output More...
 
class  Logging
 controls the logging facility More...
 
class  NotificationStream
 provides a publisher of Notification Stream More...
 
class  NotificationSubscriber
 provides a subscriber of Notification Stream More...
 
class  NotificationSubscriberBase
 
class  SegmentFetcher
 Utility class to fetch latest version of the segmented data. More...
 
class  Sha256
 Provides stateful SHA-256 digest calculation. More...
 
class  Sqlite3Statement
 wrap an SQLite3 prepared statement More...
 

Enumerations

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

Functions

static bool isValidLoggerName (const std::string &name)
 checks if incoming logger name meets criteria More...
 
std::ostream & operator<< (std::ostream &os, LogLevel level)
 output LogLevel as string More...
 
std::ostream & operator<< (std::ostream &os, const LoggerTimestamp &)
 write a timestamp to os More...
 
std::ostream & operator<< (std::ostream &os, Sha256 &digest)
 
LogLevel parseLogLevel (const std::string &s)
 parse LogLevel from string More...
 

Variables

static const LogLevel INITIAL_DEFAULT_LEVEL = LogLevel::NONE
 

Enumeration Type Documentation

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 40 of file logger.hpp.

Function Documentation

static bool ndn::util::isValidLoggerName ( const std::string &  name)
static

checks if incoming logger name meets criteria

Parameters
namename of logger

Definition at line 86 of file logger.cpp.

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

output LogLevel as string

Exceptions
std::invalid_argumentunknown level

Definition at line 34 of file logger.cpp.

std::ostream & ndn::util::operator<< ( std::ostream &  os,
const LoggerTimestamp  
)

write a timestamp to os

Note
This function is thread-safe.

Definition at line 113 of file logger.cpp.

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

Definition at line 144 of file sha256.cpp.

LogLevel ndn::util::parseLogLevel ( const std::string &  s)

parse LogLevel from string

Exceptions
std::invalid_argumentunknown level name

Definition at line 59 of file logger.cpp.

Variable Documentation

const LogLevel ndn::util::INITIAL_DEFAULT_LEVEL = LogLevel::NONE
static

Definition at line 42 of file logging.cpp.