MySQL 8.4.2
Source Code Documentation
|
Functions | |
template<> | |
void | error_log_print< error_log_level::INFO > (const char *fmt,...) |
template<> | |
void | error_log_print< error_log_level::WARNING > (const char *fmt,...) |
template<> | |
void | error_log_print< error_log_level::ERROR > (const char *fmt,...) |
char * | wchar_to_utf8 (const wchar_t *string, size_t *len) |
Convert a wide-char string to utf8 representation. More... | |
wchar_t * | utf8_to_wchar (const char *string, size_t *len) |
Convert an utf8 string to a wide-char string. More... | |
const char * | get_last_error_message (Error_message_buf buf) |
Error handling. More... | |
Variables | |
int | opt_auth_win_log_level = 2 |
Option indicating desired level of logging. More... | |
void error_log_print< error_log_level::ERROR > | ( | const char * | fmt, |
... | |||
) |
void error_log_print< error_log_level::INFO > | ( | const char * | fmt, |
... | |||
) |
void error_log_print< error_log_level::WARNING > | ( | const char * | fmt, |
... | |||
) |
const char * get_last_error_message | ( | Error_message_buf | buf | ) |
Error handling.
Returns error message corresponding to the last Windows error given by GetLastError().
get_last_error_message()
. wchar_t * utf8_to_wchar | ( | const char * | string, |
size_t * | len | ||
) |
Convert an utf8 string to a wide-char string.
[in] | string | null-terminated utf8 string to be converted |
[in,out] | len | length of the string to be converted or 0; on return length (in chars) of the converted string |
If len is 0 then the length of the string will be computed by this function.
free()
call. char * wchar_to_utf8 | ( | const wchar_t * | string, |
size_t * | len | ||
) |
Convert a wide-char string to utf8 representation.
[in] | string | null-terminated wide-char string to be converted |
[in,out] | len | length of the string to be converted or 0; on return length (in bytes, excluding terminating null character) of the converted string |
If len is 0 then the length of the string will be computed by this function.
free()
call. int opt_auth_win_log_level = 2 |
Option indicating desired level of logging.
Values:
0 - no logging 1 - log only error messages 2 - additionally log warnings 3 - additionally log info notes 4 - also log debug messages
Value of this option should be taken into account in the implementation of error_log_vprint() function (see log_client.cc).
Note: No error or debug messages are logged in production code (see logging macros in common.h).