liblogger/liblogger_levels.h

Go to the documentation of this file.
00001 /*
00002  * liblogger - copyright 2007, Vineeth Neelakant, nvineeth@gmail.com
00003  * This file is part of liblogger.
00004  *
00005  * liblogger is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU Lesser General Public License as published by
00007  * the Free Software Foundation; either version 3 of the License, or
00008  * (at your option) any later version.
00009  * 
00010  * liblogger is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU Lesser General Public License for more details.
00014  * 
00015  * You should have received a copy of the GNU Lesser General Public License
00016  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00017  */
00018 #ifndef __EXP_LOGGER_CONFIG_H__
00019 #define __EXP_LOGGER_CONFIG_H__
00020 
00021 /** \defgroup GRP_LOG_LEVELS Log Levels
00022  * The following macros indicate the log levels
00023  * @{
00024  * */
00025 /** The Trace log level */
00026 #define LOG_LEVEL_TRACE 1
00027 /** The Debug log level */
00028 #define LOG_LEVEL_DEBUG 2
00029 /** The Info log level */
00030 #define LOG_LEVEL_INFO  3
00031 /** The Warning log level */
00032 #define LOG_LEVEL_WARN  4
00033 /** The Error log level */
00034 #define LOG_LEVEL_ERROR 5
00035 /** The Fatal log level */
00036 #define LOG_LEVEL_FATAL 6
00037 
00038 /** define this macro to disable logs (in the current file), to disable globally define DISABLE_ALL_LOGS   */
00039 #define LOG_LEVEL_DISABLED 12
00040 
00041 /** Indicates the log level */
00042 typedef enum LogLevel
00043 {
00044         Trace, /**< The trace log level */
00045         Debug, /**< The debug log level */
00046         Info, /**< The info log level */
00047         Warn, /**< The warn log level */
00048         Error, /**< The error log level */
00049         Fatal /**< The fatal log level */
00050 }LogLevel;
00051 
00052 /** @} */
00053 
00054 #endif // __EXP_LOGGER_CONFIG_H__
00055 

liblogger © 2007 - SourceForge.net Logo