My Project 2.4.4
C++ Distributed Hash Table
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
dht::Logger Struct Reference
Collaboration diagram for dht::Logger:
Collaboration graph
[legend]

Public Member Functions

 Logger (LogMethod &&err, LogMethod &&warn, LogMethod &&dbg)
 
void setFilter (const InfoHash &f)
 
void log0 (const LogMethod &logger, char const *format, va_list args) const
 
void log1 (const LogMethod &logger, const InfoHash &f, char const *format, va_list args) const
 
void log2 (const LogMethod &logger, const InfoHash &f1, const InfoHash &f2, char const *format, va_list args) const
 
void d (char const *format,...) const
 
void d (const InfoHash &f, char const *format,...) const
 
void d (const InfoHash &f1, const InfoHash &f2, char const *format,...) const
 
void w (char const *format,...) const
 
void w (const InfoHash &f, char const *format,...) const
 
void w (const InfoHash &f1, const InfoHash &f2, char const *format,...) const
 
void e (char const *format,...) const
 
void e (const InfoHash &f, char const *format,...) const
 
void e (const InfoHash &f1, const InfoHash &f2, char const *format,...) const
 

Public Attributes

LogMethod ERR = {}
 
LogMethod WARN = {}
 
LogMethod DBG = {}
 

Detailed Description

Definition at line 84 of file log_enable.h.

Constructor & Destructor Documentation

◆ Logger()

dht::Logger::Logger ( LogMethod &&  err,
LogMethod &&  warn,
LogMethod &&  dbg 
)
inline

Definition at line 90 of file log_enable.h.

Member Function Documentation

◆ d() [1/3]

void dht::Logger::d ( char const *  format,
  ... 
) const
inline

Definition at line 114 of file log_enable.h.

◆ d() [2/3]

void dht::Logger::d ( const InfoHash f,
char const *  format,
  ... 
) const
inline

Definition at line 122 of file log_enable.h.

◆ d() [3/3]

void dht::Logger::d ( const InfoHash f1,
const InfoHash f2,
char const *  format,
  ... 
) const
inline

Definition at line 130 of file log_enable.h.

◆ e() [1/3]

void dht::Logger::e ( char const *  format,
  ... 
) const
inline

Definition at line 162 of file log_enable.h.

◆ e() [2/3]

void dht::Logger::e ( const InfoHash f,
char const *  format,
  ... 
) const
inline

Definition at line 170 of file log_enable.h.

◆ e() [3/3]

void dht::Logger::e ( const InfoHash f1,
const InfoHash f2,
char const *  format,
  ... 
) const
inline

Definition at line 178 of file log_enable.h.

◆ log0()

void dht::Logger::log0 ( const LogMethod logger,
char const *  format,
va_list  args 
) const
inline

Definition at line 96 of file log_enable.h.

◆ log1()

void dht::Logger::log1 ( const LogMethod logger,
const InfoHash f,
char const *  format,
va_list  args 
) const
inline

Definition at line 102 of file log_enable.h.

◆ log2()

void dht::Logger::log2 ( const LogMethod logger,
const InfoHash f1,
const InfoHash f2,
char const *  format,
va_list  args 
) const
inline

Definition at line 108 of file log_enable.h.

◆ setFilter()

void dht::Logger::setFilter ( const InfoHash f)
inline

Definition at line 92 of file log_enable.h.

◆ w() [1/3]

void dht::Logger::w ( char const *  format,
  ... 
) const
inline

Definition at line 138 of file log_enable.h.

◆ w() [2/3]

void dht::Logger::w ( const InfoHash f,
char const *  format,
  ... 
) const
inline

Definition at line 146 of file log_enable.h.

◆ w() [3/3]

void dht::Logger::w ( const InfoHash f1,
const InfoHash f2,
char const *  format,
  ... 
) const
inline

Definition at line 154 of file log_enable.h.

Member Data Documentation

◆ DBG

LogMethod dht::Logger::DBG = {}

Definition at line 87 of file log_enable.h.

◆ ERR

LogMethod dht::Logger::ERR = {}

Definition at line 85 of file log_enable.h.

◆ WARN

LogMethod dht::Logger::WARN = {}

Definition at line 86 of file log_enable.h.


The documentation for this struct was generated from the following file: