Fixed spacing of logger skeleton. Added initial comment to main.h

Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
This commit is contained in:
Gergely Polonkai (W00d5t0ck) 2012-05-18 15:53:48 +02:00
parent 136b000d77
commit 7fa4ffd9fd
2 changed files with 25 additions and 3 deletions

View File

@ -37,6 +37,7 @@
#include "configuration.h"
#include "world.h"
#include "menu.h"
#include "texts.h"
/**
* SECTION:utils
@ -134,14 +135,17 @@ wmud_logger(const gchar *log_domain, GLogLevelFlags log_level, const gchar *mess
* debug support. The code below actually doesn't
* require it, it's just a conceptional thing. */
#ifdef DEBUG
g_print("DEBUG: %s\n", message);
g_print("DEBUG: %s\n", message);
#endif
break;
case G_LOG_LEVEL_MESSAGE:
g_print("MESSAGE: %s\n", message);
g_print("MESSAGE: %s\n", message);
break;
case G_LOG_LEVEL_INFO:
g_print("INFO: %s\n", message);
g_print("INFO: %s\n", message);
break;
case G_LOG_LEVEL_WARNING:
g_print("WARNING: %s\n", message);
break;
default:
g_print("UNKNOWN LEVEL %03d: %s\n", log_level, message);

View File

@ -1,3 +1,21 @@
/* wMUD - Yet another MUD codebase by W00d5t0ck
* Copyright (C) 2012 - Gergely POLONKAI
*
* main.h: main and uncategorized functions
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __WMUD_MAIN_H__
# define __WMUD_MAIN_H__