cpp_redis  4.0.0
cpp_redis is a C++11 Asynchronous Multi-Platform Lightweight Redis Client, with support for synchronous operations and pipelining.
Public Member Functions | List of all members
cpp_redis::logger_iface Class Referenceabstract

#include <logger.hpp>

Inheritance diagram for cpp_redis::logger_iface:
cpp_redis::logger

Public Member Functions

 logger_iface (void)=default
 ctor More...
 
virtual ~logger_iface (void)=default
 dtor More...
 
 logger_iface (const logger_iface &)=default
 copy ctor More...
 
logger_ifaceoperator= (const logger_iface &)=default
 assignment operator More...
 
virtual void debug (const std::string &msg, const std::string &file, std::size_t line)=0
 
virtual void info (const std::string &msg, const std::string &file, std::size_t line)=0
 
virtual void warn (const std::string &msg, const std::string &file, std::size_t line)=0
 
virtual void error (const std::string &msg, const std::string &file, std::size_t line)=0
 

Detailed Description

logger_iface should be inherited by any class intended to be used for logging

Constructor & Destructor Documentation

◆ logger_iface() [1/2]

cpp_redis::logger_iface::logger_iface ( void  )
default

ctor

◆ ~logger_iface()

virtual cpp_redis::logger_iface::~logger_iface ( void  )
virtualdefault

dtor

◆ logger_iface() [2/2]

cpp_redis::logger_iface::logger_iface ( const logger_iface )
default

copy ctor

Member Function Documentation

◆ debug()

virtual void cpp_redis::logger_iface::debug ( const std::string &  msg,
const std::string &  file,
std::size_t  line 
)
pure virtual

debug logging

Parameters
msgmessage to be logged
filefile from which the message is coming
lineline in the file of the message

Implemented in cpp_redis::logger.

◆ error()

virtual void cpp_redis::logger_iface::error ( const std::string &  msg,
const std::string &  file,
std::size_t  line 
)
pure virtual

error logging

Parameters
msgmessage to be logged
filefile from which the message is coming
lineline in the file of the message

Implemented in cpp_redis::logger.

◆ info()

virtual void cpp_redis::logger_iface::info ( const std::string &  msg,
const std::string &  file,
std::size_t  line 
)
pure virtual

info logging

Parameters
msgmessage to be logged
filefile from which the message is coming
lineline in the file of the message

Implemented in cpp_redis::logger.

◆ operator=()

logger_iface& cpp_redis::logger_iface::operator= ( const logger_iface )
default

assignment operator

◆ warn()

virtual void cpp_redis::logger_iface::warn ( const std::string &  msg,
const std::string &  file,
std::size_t  line 
)
pure virtual

warn logging

Parameters
msgmessage to be logged
filefile from which the message is coming
lineline in the file of the message

Implemented in cpp_redis::logger.


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