![]() |
MySQL 9.5.0
Source Code Documentation
|
Class representing logger for LDAP plugins. More...
#include <log_client.h>
Static Public Member Functions | |
| static void | create_logger (ldap_log_level log_level=LDAP_LOG_LEVEL_NONE) |
| Creates the logger object. More... | |
| static void | destroy_logger () |
| Destroys the logger object. More... | |
| static void | log_dbg_msg (Message msg) |
| Log a debug message. More... | |
| static void | log_info_msg (Message msg) |
| Log an info message. More... | |
| static void | log_warning_msg (Message msg) |
| Log a warning message. More... | |
| static void | log_error_msg (Message msg) |
| Log an error message. More... | |
Private Types | |
| using | Message = std::initializer_list< const char * > |
| type of message to be logged More... | |
Private Member Functions | |
| Ldap_logger (ldap_log_level level) | |
| Private constructor to assure singleton pattern. More... | |
| ~Ldap_logger () | |
| Destructor. More... | |
| template<ldap_log_level level, const char * prefix> | |
| void | log (Message msg) |
| Compose the log message and write it. More... | |
Private Attributes | |
| Ldap_log_writer_error * | m_log_writer |
| Log writer. More... | |
| ldap_log_level | m_log_level |
| Log level. More... | |
Static Private Attributes | |
| static Ldap_logger * | m_logger = nullptr |
| Pointer to the only log object. More... | |
Class representing logger for LDAP plugins.
Singleton.
|
private |
type of message to be logged
|
private |
Private constructor to assure singleton pattern.
| level | [in] log level |
|
private |
Destructor.
|
static |
Creates the logger object.
| log_level | [in] log level |
|
static |
Destroys the logger object.
|
inlineprivate |
Compose the log message and write it.
| level | log level |
| prefix | log level name |
| msg | [in] message to be logged |
|
static |
Log a debug message.
| msg | [in] the message |
|
static |
Log an error message.
| msg | [in] the message |
|
static |
Log an info message.
| msg | [in] the message |
|
static |
Log a warning message.
| msg | [in] the message |
|
private |
Log level.
|
private |
Log writer.
|
staticprivate |
Pointer to the only log object.