debug.h

Go to the documentation of this file.
00001 /*
00002 ** Copyright 2005-2008 - INL
00003 ** Written by Vincent Deffontaines <vincent@gryzor.com>
00004 **            Victor Stinner <haypo@inl.fr>
00005 ** INL http://www.inl.fr/
00006 **
00007 ** $Id: debug.h 4847 2008-06-13 14:48:31Z regit $
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, version 3 of the License.
00012 **
00013 ** This program is distributed in the hope that it will be useful,
00014 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 ** GNU General Public License for more details.
00017 **
00018 ** You should have received a copy of the GNU General Public License
00019 ** along with this program; if not, write to the Free Software
00020 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00021 */
00022 
00023 #ifndef NUFW_DEBUG_HEADER
00024 #define NUFW_DEBUG_HEADER
00025 
00026 
00027 #define RETURN_NO_LOG return
00028 
00033 typedef enum {
00034         DEBUG_LEVEL_FATAL = 1,  
00035         DEBUG_LEVEL_CRITICAL,   
00036         DEBUG_LEVEL_SERIOUS_WARNING,    
00037         DEBUG_LEVEL_WARNING,    
00038         DEBUG_LEVEL_SERIOUS_MESSAGE,    
00039         DEBUG_LEVEL_MESSAGE,    
00040         DEBUG_LEVEL_INFO,       
00041         DEBUG_LEVEL_DEBUG,      
00042         DEBUG_LEVEL_VERBOSE_DEBUG,      
00044         DEFAULT_DEBUG_LEVEL = DEBUG_LEVEL_SERIOUS_WARNING,      
00046         MIN_DEBUG_LEVEL = DEBUG_LEVEL_FATAL,    
00047         MAX_DEBUG_LEVEL = DEBUG_LEVEL_VERBOSE_DEBUG     
00048 } debug_level_t;
00049 
00051 typedef enum {
00052         DEBUG_AREA_MAIN = 1,    
00053         DEBUG_AREA_PACKET = 2,  
00054         DEBUG_AREA_USER = 4,    
00055         DEBUG_AREA_GW = 8,      
00056         DEBUG_AREA_AUTH = 16,   
00057         DEBUG_AREA_PERF = 32,   
00059         DEBUG_AREA_ALL = DEBUG_AREA_MAIN | DEBUG_AREA_PACKET | DEBUG_AREA_USER
00060                 | DEBUG_AREA_GW | DEBUG_AREA_AUTH | DEBUG_AREA_PERF,    
00062         DEFAULT_DEBUG_AREAS = DEBUG_AREA_MAIN | DEBUG_AREA_PACKET | DEBUG_AREA_USER
00063                 | DEBUG_AREA_GW | DEBUG_AREA_AUTH       
00064 } debug_area_t;
00065 
00066 #define LOG_FACILITY LOG_DAEMON
00067 
00068 #endif                          /* define NUFW_DEBUG_HEADER */

Generated on Sat Nov 22 04:00:37 2008 for NuFW by  doxygen 1.4.7