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__
137 #define g_info(fmt, ...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, fmt, ## __VA_ARGS__)
154 #define vm_critical(fmt, ...) g_critical("%s: " fmt, FUNC, ## __VA_ARGS__)
157 #define vm_debug(fmt, ...) g_debug("%s: " fmt, FUNC, ## __VA_ARGS__)
160 #define vm_error(fmt, ...) g_error("%s: " fmt, FUNC, ## __VA_ARGS__)
163 #define vm_info(fmt, ...) g_info("%s: " fmt, FUNC, ## __VA_ARGS__)
166 #define vm_message(fmt, ...) g_message("%s: " fmt, FUNC, ## __VA_ARGS__)
169 #define vm_warning(fmt, ...) g_warning("%s: " fmt, FUNC, ## __VA_ARGS__)