50 template <log_client_type::log_type type>
51 void log(std::string msg);
53 void write(std::string data);
61template <log_client_type::log_type type>
63 std::stringstream log_stream;
69 log_stream <<
"[DBG] ";
75 log_stream <<
"[Note] ";
81 log_stream <<
"[Warning] ";
87 log_stream <<
"[Error] ";
95 log_stream <<
": " << msg;
96 write(log_stream.str());
101#define log_client_dbg g_logger_client->log<log_client_type::LOG_CLIENT_DBG>
102#define log_client_info g_logger_client->log<log_client_type::LOG_CLIENT_INFO>
103#define log_client_warning g_logger->log<log_client_type::LOG_CLIENT_WARNING>
104#define log_client_error g_logger_client->log<log_client_type::LOG_CLIENT_ERROR>
Logger_client * g_logger_client
Definition: auth_kerberos_client_plugin.cc:52
log_client_level
Definition: log_client.h:40
@ LOG_CLIENT_LEVEL_ERROR_WARNING_INFO
Definition: log_client.h:44
@ LOG_CLIENT_LEVEL_ERROR
Definition: log_client.h:42
@ LOG_CLIENT_LEVEL_ERROR_WARNING
Definition: log_client.h:43
@ LOG_CLIENT_LEVEL_NONE
Definition: log_client.h:41
@ LOG_CLIENT_LEVEL_ALL
Definition: log_client.h:45
Definition: log_client.h:48
void set_log_level(log_client_level level)
Definition: log_client.cc:26
log_client_level m_log_level
Definition: log_client.h:58
void write(std::string data)
Definition: log_client.cc:30
void log(std::string msg)
Definition: log_client.h:62
void log_client_plugin_data_exchange(const unsigned char *buffer, unsigned int length)
Definition: log_client.cc:35
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:76
mutable_buffer buffer(void *p, size_t n) noexcept
Definition: buffer.h:418
required string type
Definition: replication_group_member_actions.proto:34
Definition: log_client.h:31
log_type
Definition: log_client.h:32
@ LOG_CLIENT_ERROR
Definition: log_client.h:36
@ LOG_CLIENT_DBG
Definition: log_client.h:33
@ LOG_CLIENT_WARNING
Definition: log_client.h:35
@ LOG_CLIENT_INFO
Definition: log_client.h:34