Added G_LOG_LEVEL_MESSAGE to logger

Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
This commit is contained in:
Gergely POLONKAI 2012-05-17 22:17:40 +02:00
parent 48eb728669
commit e8660f2a31

View File

@ -130,10 +130,16 @@ wmud_logger(const gchar *log_domain, GLogLevelFlags log_level, const gchar *mess
switch (log_level)
{
case G_LOG_LEVEL_DEBUG:
/* Log debug messages only if we are compiled with
* debug support. The code below actually doesn't
* require it, it's just a conceptional thing. */
#ifdef DEBUG
g_print("DEBUG: %s\n", message);
#endif
break;
case G_LOG_LEVEL_MESSAGE:
g_print("MESSAGE: %s\n", message);
break;
case G_LOG_LEVEL_INFO:
g_print("INFO: %s\n", message);
break;