19 #ifndef _VMTOOLS_LOG_H_ 20 #define _VMTOOLS_LOG_H_ 136 #if !defined(G_LOG_DOMAIN) 137 # error "G_LOG_DOMAIN must be defined." 142 #if defined(__GNUC__) 143 # define FUNC __func__ 145 # define FUNC __FUNCTION__ 161 # define g_info(fmt, ...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, fmt, ## __VA_ARGS__) 166 #define VMTOOLS_LOGGING_LEVEL_DEFAULT "info" 168 #define VMTOOLS_LOGGING_LEVEL_DEFAULT "message" 186 #define vm_critical(fmt, ...) g_critical("%s: " fmt, FUNC, ## __VA_ARGS__) 189 #define vm_debug(fmt, ...) g_debug("%s: " fmt, FUNC, ## __VA_ARGS__) 192 #define vm_error(fmt, ...) g_error("%s: " fmt, FUNC, ## __VA_ARGS__) 195 #define vm_info(fmt, ...) g_info("%s: " fmt, FUNC, ## __VA_ARGS__) 198 #define vm_message(fmt, ...) g_message("%s: " fmt, FUNC, ## __VA_ARGS__) 201 #define vm_warning(fmt, ...) g_warning("%s: " fmt, FUNC, ## __VA_ARGS__)