Go to the documentation of this file.
19 #ifndef _VMTOOLS_LOG_H_
20 #define _VMTOOLS_LOG_H_
112 #if !defined(G_LOG_DOMAIN)
113 # error "G_LOG_DOMAIN must be defined."
118 #if defined(__GNUC__)
119 # define FUNC __func__
121 # define FUNC __FUNCTION__
138 # define g_info(fmt, ...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, fmt, ## __VA_ARGS__)
156 #define vm_critical(fmt, ...) g_critical("%s: " fmt, FUNC, ## __VA_ARGS__)
159 #define vm_debug(fmt, ...) g_debug("%s: " fmt, FUNC, ## __VA_ARGS__)
162 #define vm_error(fmt, ...) g_error("%s: " fmt, FUNC, ## __VA_ARGS__)
165 #define vm_info(fmt, ...) g_info("%s: " fmt, FUNC, ## __VA_ARGS__)
168 #define vm_message(fmt, ...) g_message("%s: " fmt, FUNC, ## __VA_ARGS__)
171 #define vm_warning(fmt, ...) g_warning("%s: " fmt, FUNC, ## __VA_ARGS__)