Keyple Util C++ Library 2.0.0
Reference Terminal Reader API for C++
Public Types | Public Member Functions | Static Public Member Functions | List of all members
keyple::core::util::cpp::Logger Class Reference

#include <Logger.h>

Public Types

enum class  Level {
  logNone = 0 , logError , logWarn , logInfo ,
  logDebug , logTrace
}
 

Public Member Functions

 Logger (const std::string &className, std::mutex *mtx)
 
std::string getClassName ()
 
template<typename... Args>
void trace (const std::string &format, Args... args)
 
template<typename... Args>
void debug (const std::string &format, Args... args)
 
template<typename... Args>
void warn (const std::string &format, Args... args)
 
template<typename... Args>
void info (const std::string &format, Args... args)
 
template<typename... Args>
void error (const std::string &format, Args... args)
 

Static Public Member Functions

static void setLoggerLevel (Level level)
 

Detailed Description

Definition at line 40 of file Logger.h.

Member Enumeration Documentation

◆ Level

Enumerator
logNone 
logError 
logWarn 
logInfo 
logDebug 
logTrace 

Definition at line 45 of file Logger.h.

Constructor & Destructor Documentation

◆ Logger()

keyple::core::util::cpp::Logger::Logger ( const std::string &  className,
std::mutex *  mtx 
)

Constructor

Definition at line 24 of file Logger.cpp.

Member Function Documentation

◆ debug()

template<typename... Args>
void keyple::core::util::cpp::Logger::debug ( const std::string &  format,
Args...  args 
)
inline

Definition at line 83 of file Logger.h.

◆ error()

template<typename... Args>
void keyple::core::util::cpp::Logger::error ( const std::string &  format,
Args...  args 
)
inline

Definition at line 113 of file Logger.h.

◆ getClassName()

std::string keyple::core::util::cpp::Logger::getClassName ( )

Definition at line 27 of file Logger.cpp.

◆ info()

template<typename... Args>
void keyple::core::util::cpp::Logger::info ( const std::string &  format,
Args...  args 
)
inline

Definition at line 103 of file Logger.h.

◆ setLoggerLevel()

void keyple::core::util::cpp::Logger::setLoggerLevel ( Logger::Level  level)
static

Definition at line 32 of file Logger.cpp.

◆ trace()

template<typename... Args>
void keyple::core::util::cpp::Logger::trace ( const std::string &  format,
Args...  args 
)
inline

Definition at line 73 of file Logger.h.

◆ warn()

template<typename... Args>
void keyple::core::util::cpp::Logger::warn ( const std::string &  format,
Args...  args 
)
inline

Definition at line 93 of file Logger.h.


The documentation for this class was generated from the following files: