boost_redis 1.4.2
A redis client library
|
Logger class. More...
#include <include/boost/redis/logger.hpp>
Public Types | |
enum class | level |
Syslog-like log levels. More... | |
Public Member Functions | |
logger (level l=level::info) | |
Constructor. More... | |
void | on_connect (system::error_code const &ec, asio::ip::tcp::endpoint const &ep) |
Called when the connect operation completes. More... | |
void | on_connection_lost (system::error_code const &ec) |
Called when the connection is lost. More... | |
void | on_hello (system::error_code const &ec, generic_response const &resp) |
Called when the HELLO request completes. More... | |
void | on_resolve (system::error_code const &ec, asio::ip::tcp::resolver::results_type const &res) |
Called when the resolve operation completes. More... | |
void | on_ssl_handshake (system::error_code const &ec) |
Called when the ssl handshake operation completes. More... | |
void | on_write (system::error_code const &ec, std::string const &payload) |
Called when the write operation completes. More... | |
void | set_prefix (std::string_view prefix) |
Sets a prefix to every log message. More... | |
Logger class.
The class can be passed to the connection objects to log to std::clog
Definition at line 23 of file logger.hpp.