cpp_redis
4.0.0
cpp_redis is a C++11 Asynchronous Multi-Platform Lightweight Redis Client, with support for synchronous operations and pipelining.
|
#include <logger.hpp>
Public Types | |
enum | log_level { error = 0, warn = 1, info = 2, debug = 3 } |
Public Member Functions | |
logger (log_level level=log_level::info) | |
ctor | |
~logger (void)=default | |
dtor | |
logger (const logger &)=default | |
copy ctor | |
logger & | operator= (const logger &)=default |
assignment operator | |
void | debug (const std::string &msg, const std::string &file, std::size_t line) |
void | info (const std::string &msg, const std::string &file, std::size_t line) |
void | warn (const std::string &msg, const std::string &file, std::size_t line) |
void | error (const std::string &msg, const std::string &file, std::size_t line) |
Public Member Functions inherited from cpp_redis::logger_iface | |
logger_iface (void)=default | |
ctor | |
virtual | ~logger_iface (void)=default |
dtor | |
logger_iface (const logger_iface &)=default | |
copy ctor | |
logger_iface & | operator= (const logger_iface &)=default |
assignment operator | |
default logger class provided by the library
|
strong |
log level
|
virtual |
debug logging
msg | message to be logged |
file | file from which the message is coming |
line | line in the file of the message |
Implements cpp_redis::logger_iface.
|
virtual |
error logging
msg | message to be logged |
file | file from which the message is coming |
line | line in the file of the message |
Implements cpp_redis::logger_iface.
|
virtual |
info logging
msg | message to be logged |
file | file from which the message is coming |
line | line in the file of the message |
Implements cpp_redis::logger_iface.
|
virtual |
warn logging
msg | message to be logged |
file | file from which the message is coming |
line | line in the file of the message |
Implements cpp_redis::logger_iface.