16 #include <my_global.h>
22 void error_log_vprint(error_log_level::type
level,
23 const char *
fmt, va_list args)
25 const char *level_string=
"";
26 int log_level= get_log_level();
30 case error_log_level::INFO:
35 case error_log_level::WARNING:
38 level_string=
"Warning";
40 case error_log_level::ERROR:
43 level_string=
"ERROR";
47 fprintf(stderr,
"Windows Authentication Plugin %s: ", level_string);
48 vfprintf(stderr, fmt, args);
56 void set_log_level(
unsigned int level)
58 opt_auth_win_log_level=
level;
62 unsigned int get_log_level(
void)
64 return opt_auth_win_log_level;