My Project 3.2.0
C++ Distributed Hash Table
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dht::log::Logger Struct Reference

Public Member Functions

 Logger (LogMethod &&l)
 
void setFilter (const InfoHash &f)
 
void log0 (LogLevel level, fmt::string_view format, fmt::printf_args args) const
 
void log1 (LogLevel level, const InfoHash &f, fmt::string_view format, fmt::printf_args args) const
 
void log2 (LogLevel level, const InfoHash &f1, const InfoHash &f2, fmt::string_view format, fmt::printf_args args) const
 
template<typename S , typename... Args>
void debug (S &&format, Args &&... args) const
 
template<typename S , typename... Args>
void warn (S &&format, Args &&... args) const
 
template<typename S , typename... Args>
void error (S &&format, Args &&... args) const
 
template<typename... T>
void d (fmt::format_string< T... > format, T &&... args) const
 
template<typename... T>
void d (const InfoHash &f, fmt::format_string< T... > format, T &&... args) const
 
template<typename... T>
void d (const InfoHash &f1, const InfoHash &f2, fmt::format_string< T... > format, T &&... args) const
 
template<typename... T>
void w (fmt::format_string< T... > format, T &&... args) const
 
template<typename... T>
void w (const InfoHash &f, fmt::format_string< T... > format, T &&... args) const
 
template<typename... T>
void w (const InfoHash &f1, const InfoHash &f2, fmt::format_string< T... > format, T &&... args) const
 
template<typename... T>
void e (fmt::format_string< T... > format, T &&... args) const
 
template<typename... T>
void e (const InfoHash &f, fmt::format_string< T... > format, T &&... args) const
 
template<typename... T>
void e (const InfoHash &f1, const InfoHash &f2, fmt::format_string< T... > format, T &&... args) const
 

Detailed Description

Definition at line 39 of file logger.h.

Constructor & Destructor Documentation

◆ Logger()

dht::log::Logger::Logger ( LogMethod && l)
inline

Definition at line 41 of file logger.h.

Member Function Documentation

◆ d() [1/3]

template<typename... T>
void dht::log::Logger::d ( const InfoHash & f,
fmt::format_string< T... > format,
T &&... args ) const
inline

Definition at line 79 of file logger.h.

◆ d() [2/3]

template<typename... T>
void dht::log::Logger::d ( const InfoHash & f1,
const InfoHash & f2,
fmt::format_string< T... > format,
T &&... args ) const
inline

Definition at line 83 of file logger.h.

◆ d() [3/3]

template<typename... T>
void dht::log::Logger::d ( fmt::format_string< T... > format,
T &&... args ) const
inline

Definition at line 75 of file logger.h.

◆ debug()

template<typename S , typename... Args>
void dht::log::Logger::debug ( S && format,
Args &&... args ) const
inline

Definition at line 63 of file logger.h.

◆ e() [1/3]

template<typename... T>
void dht::log::Logger::e ( const InfoHash & f,
fmt::format_string< T... > format,
T &&... args ) const
inline

Definition at line 103 of file logger.h.

◆ e() [2/3]

template<typename... T>
void dht::log::Logger::e ( const InfoHash & f1,
const InfoHash & f2,
fmt::format_string< T... > format,
T &&... args ) const
inline

Definition at line 107 of file logger.h.

◆ e() [3/3]

template<typename... T>
void dht::log::Logger::e ( fmt::format_string< T... > format,
T &&... args ) const
inline

Definition at line 99 of file logger.h.

◆ error()

template<typename S , typename... Args>
void dht::log::Logger::error ( S && format,
Args &&... args ) const
inline

Definition at line 71 of file logger.h.

◆ log0()

void dht::log::Logger::log0 ( LogLevel level,
fmt::string_view format,
fmt::printf_args args ) const
inline

Definition at line 50 of file logger.h.

◆ log1()

void dht::log::Logger::log1 ( LogLevel level,
const InfoHash & f,
fmt::string_view format,
fmt::printf_args args ) const
inline

Definition at line 54 of file logger.h.

◆ log2()

void dht::log::Logger::log2 ( LogLevel level,
const InfoHash & f1,
const InfoHash & f2,
fmt::string_view format,
fmt::printf_args args ) const
inline

Definition at line 58 of file logger.h.

◆ setFilter()

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

Definition at line 46 of file logger.h.

◆ w() [1/3]

template<typename... T>
void dht::log::Logger::w ( const InfoHash & f,
fmt::format_string< T... > format,
T &&... args ) const
inline

Definition at line 91 of file logger.h.

◆ w() [2/3]

template<typename... T>
void dht::log::Logger::w ( const InfoHash & f1,
const InfoHash & f2,
fmt::format_string< T... > format,
T &&... args ) const
inline

Definition at line 95 of file logger.h.

◆ w() [3/3]

template<typename... T>
void dht::log::Logger::w ( fmt::format_string< T... > format,
T &&... args ) const
inline

Definition at line 87 of file logger.h.

◆ warn()

template<typename S , typename... Args>
void dht::log::Logger::warn ( S && format,
Args &&... args ) const
inline

Definition at line 67 of file logger.h.


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