Logging functions



Hi all,

is there a reason why there are the functions
  g_error
  g_critical
  g_warning
  g_message
but not
  g_info
  g_debug
?

Something like

#define g_info(...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, __VA_ARGS__)

#ifdef G_DEBUG
#define g_debug(...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, __VA_ARGS__)
#else
#define g_debug(...)
#endif

could be helpful.

Just an idea. :)
--
Reinhard Mueller
GNU Enterprise project
http://www.gnue.org





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]