My Project 3.2.0
C++ Distributed Hash Table
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations | Functions
dht::log Namespace Reference

Classes

struct  Logger
 

Typedefs

using LogMethod = std::function<void(LogLevel, std::string&&)>
 

Enumerations

enum class  LogLevel { debug , warning , error }
 

Functions

OPENDHT_PUBLIC std::shared_ptr< LoggergetStdLogger ()
 
OPENDHT_PUBLIC std::shared_ptr< LoggergetFileLogger (const std::string &path)
 
OPENDHT_PUBLIC std::shared_ptr< LoggergetSyslogLogger (const char *name)
 
OPENDHT_PUBLIC void enableLogging (dht::DhtRunner &dht)
 
OPENDHT_PUBLIC void enableFileLogging (dht::DhtRunner &dht, const std::string &path)
 
OPENDHT_PUBLIC void disableLogging (dht::DhtRunner &dht)
 
OPENDHT_PUBLIC void enableSyslog (dht::DhtRunner &dht, const char *name)
 

Detailed Description

Logging-related functions

Typedef Documentation

◆ LogMethod

using dht::log::LogMethod = std::function<void(LogLevel, std::string&&)>

Definition at line 37 of file logger.h.

Enumeration Type Documentation

◆ LogLevel

enum class dht::log::LogLevel
strong

Definition at line 33 of file logger.h.