00001 /************************************************************************ 00002 * Atrinik, a Multiplayer Online Role Playing Game * 00003 * * 00004 * Copyright (C) 2009-2010 Alex Tokar and Atrinik Development Team * 00005 * * 00006 * Fork from Daimonin (Massive Multiplayer Online Role Playing Game) * 00007 * and Crossfire (Multiplayer game for X-windows). * 00008 * * 00009 * This program is free software; you can redistribute it and/or modify * 00010 * it under the terms of the GNU General Public License as published by * 00011 * the Free Software Foundation; either version 2 of the License, or * 00012 * (at your option) any later version. * 00013 * * 00014 * This program is distributed in the hope that it will be useful, * 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00017 * GNU General Public License for more details. * 00018 * * 00019 * You should have received a copy of the GNU General Public License * 00020 * along with this program; if not, write to the Free Software * 00021 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * 00022 * * 00023 * The author can be reached at admin@atrinik.org * 00024 ************************************************************************/ 00025 00030 #ifndef LOGGER_H 00031 #define LOGGER_H 00032 00035 typedef enum LogLevel 00036 { 00040 llevNoLog = -1, 00041 00044 llevSystem = 0, 00045 00047 llevError, 00048 00052 llevBug, 00053 00055 llevInfo, 00056 00058 llevDebug, 00059 00062 llevMonster 00063 } LogLevel; 00064 00065 /* If not set from outside, we force a useful setting here */ 00066 #ifndef GLOBAL_LOG_LEVEL 00067 # ifdef DEBUG 00068 # define GLOBAL_LOG_LEVEL llevMonster 00069 # else 00070 # define GLOBAL_LOG_LEVEL llevInfo 00071 # endif 00072 #endif 00073 00074 #endif
1.6.2