52  void write(std::string data);
 
   59  template <ldap_log_type::ldap_type type>
 
   60  void log(std::string msg);
 
   68template <ldap_log_type::ldap_type type>
 
   70  std::stringstream log_stream;
 
   76      log_stream << 
"[DBG] ";
 
   82      log_stream << 
"[Note] ";
 
   88      log_stream << 
"[Warning] ";
 
   94      log_stream << 
"[Error] ";
 
  101    log_stream << 
": " << msg;
 
  108#define log_dbg g_logger_client->log<ldap_log_type::LDAP_LOG_DBG> 
  109#define log_info g_logger_client->log<ldap_log_type::LDAP_LOG_INFO> 
  110#define log_warning g_logger->log<ldap_log_type::LDAP_LOG_WARNING> 
  111#define log_error g_logger_client->log<ldap_log_type::LDAP_LOG_ERROR> 
Logger_client * g_logger_client
Definition: auth_kerberos_client_plugin.cc:52
 
ldap_log_level
Definition: log_client.h:40
 
@ LDAP_LOG_LEVEL_ERROR
Definition: log_client.h:42
 
@ LDAP_LOG_LEVEL_ERROR_WARNING_INFO
Definition: log_client.h:44
 
@ LDAP_LOG_LEVEL_ERROR_WARNING
Definition: log_client.h:43
 
@ LDAP_LOG_LEVEL_NONE
Definition: log_client.h:41
 
@ LDAP_LOG_LEVEL_ALL
Definition: log_client.h:45
 
Definition: log_client.h:48
 
void write(std::string data)
Definition: log_client.cc:40
 
Ldap_log_writer_error()
This class writes error into default error streams.
 
Definition: log_client.h:55
 
~Ldap_logger()
Definition: log_client.cc:32
 
ldap_log_level m_log_level
Definition: log_client.h:65
 
void log(std::string msg)
Definition: log_client.h:69
 
Ldap_logger()
Definition: log_client.cc:26
 
Ldap_log_writer_error * m_log_writer
Definition: log_client.h:64
 
void set_log_level(ldap_log_level level)
Definition: log_client.cc:38
 
required string type
Definition: replication_group_member_actions.proto:34
 
Definition: log_client.h:31
 
ldap_type
Definition: log_client.h:32
 
@ LDAP_LOG_WARNING
Definition: log_client.h:35
 
@ LDAP_LOG_INFO
Definition: log_client.h:34
 
@ LDAP_LOG_DBG
Definition: log_client.h:33
 
@ LDAP_LOG_ERROR
Definition: log_client.h:36