55 virtual void debug(
const std::string& msg,
const std::string& file, std::size_t line) = 0;
64 virtual void info(
const std::string& msg,
const std::string& file, std::size_t line) = 0;
73 virtual void warn(
const std::string& msg,
const std::string& file, std::size_t line) = 0;
82 virtual void error(
const std::string& msg,
const std::string& file, std::size_t line) = 0;
119 void debug(
const std::string& msg,
const std::string& file, std::size_t line);
128 void info(
const std::string& msg,
const std::string& file, std::size_t line);
137 void warn(
const std::string& msg,
const std::string& file, std::size_t line);
146 void error(
const std::string& msg,
const std::string& file, std::size_t line);
164 extern std::unique_ptr<logger_iface> active_logger;
174 void debug(
const std::string& msg,
const std::string& file, std::size_t line);
184 void info(
const std::string& msg,
const std::string& file, std::size_t line);
194 void warn(
const std::string& msg,
const std::string& file, std::size_t line);
204 void error(
const std::string& msg,
const std::string& file, std::size_t line);
209 #ifdef __NETFLEX_LOGGING_ENABLED 210 #define __NETFLEX_LOG(level, msg) netflex::level(msg, __FILE__, __LINE__); 212 #define __NETFLEX_LOG(level, msg) 218 #define __NETFLEX_HOST_PORT_LOG(host, port) (host + ":" + std::to_string(port)) 219 #define __NETFLEX_CLIENT_LOG_PREFIX(host, port) (std::string("[") + __NETFLEX_HOST_PORT_LOG(host, port) + "] ") virtual void debug(const std::string &msg, const std::string &file, std::size_t line)=0
virtual ~logger_iface(void)=default
dtor
logger_iface(void)=default
ctor
log_level
Definition: logger.hpp:93
Definition: logger.hpp:88
virtual void warn(const std::string &msg, const std::string &file, std::size_t line)=0
Definition: client.hpp:33
logger_iface & operator=(const logger_iface &)=default
assignment operator
virtual void info(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
Definition: logger.hpp:35