51 void write(std::string data);
58 template <ldap_log_type::ldap_type type>
59 void log(std::string msg);
67template <ldap_log_type::ldap_type type>
69 std::stringstream log_stream;
75 log_stream <<
"[DBG] ";
81 log_stream <<
"[Note] ";
87 log_stream <<
"[Warning] ";
93 log_stream <<
"[Error] ";
100 log_stream <<
": " << msg;
107#define log_dbg g_logger_client->log<ldap_log_type::LDAP_LOG_DBG>
108#define log_info g_logger_client->log<ldap_log_type::LDAP_LOG_INFO>
109#define log_warning g_logger->log<ldap_log_type::LDAP_LOG_WARNING>
110#define log_error g_logger_client->log<ldap_log_type::LDAP_LOG_ERROR>
Logger_client * g_logger_client
Definition: auth_kerberos_client_plugin.cc:66
ldap_log_level
Definition: log_client.h:39
@ LDAP_LOG_LEVEL_ERROR
Definition: log_client.h:41
@ LDAP_LOG_LEVEL_ERROR_WARNING_INFO
Definition: log_client.h:43
@ LDAP_LOG_LEVEL_ERROR_WARNING
Definition: log_client.h:42
@ LDAP_LOG_LEVEL_NONE
Definition: log_client.h:40
@ LDAP_LOG_LEVEL_ALL
Definition: log_client.h:44
Definition: log_client.h:47
void write(std::string data)
Definition: log_client.cc:39
Ldap_log_writer_error()
This class writes error into default error streams.
Definition: log_client.h:54
~Ldap_logger()
Definition: log_client.cc:31
ldap_log_level m_log_level
Definition: log_client.h:64
void log(std::string msg)
Definition: log_client.h:68
Ldap_logger()
Definition: log_client.cc:25
Ldap_log_writer_error * m_log_writer
Definition: log_client.h:63
void set_log_level(ldap_log_level level)
Definition: log_client.cc:37
required string type
Definition: replication_group_member_actions.proto:33
Definition: log_client.h:30
ldap_type
Definition: log_client.h:31
@ LDAP_LOG_WARNING
Definition: log_client.h:34
@ LDAP_LOG_INFO
Definition: log_client.h:33
@ LDAP_LOG_DBG
Definition: log_client.h:32
@ LDAP_LOG_ERROR
Definition: log_client.h:35