00001 /* 00002 ** $Id: log_8h-source.html,v 1.1 2007/08/02 18:36:20 krishnap Exp $ 00003 ** 00004 ** Matthew Allen 00005 ** description: 00006 */ 00007 00008 #ifndef _CHIMERA_LOG_H_ 00009 #define _CHIMERA_LOG_H_ 00010 00011 enum { 00012 LOG_ERROR, /* error messages (stderr) */ 00013 LOG_WARN, /* warning messages (none) */ 00014 LOG_DEBUG, /* debugging messages (none) */ 00015 LOG_KEYDEBUG, /* debugging messages for key subsystem (none) */ 00016 LOG_NETWORKDEBUG, /* debugging messages for network layer (none) */ 00017 LOG_ROUTING, /* debugging the routing table (none) */ 00018 LOG_SECUREDEBUG, /* for security module (none) */ 00019 LOG_DATA, /* for measurement and analysis (none) */ 00020 LOG_COUNT /* count of log message types */ 00021 }; 00022 00023 00024 void * log_init(); 00025 void log_message(void *logs, int type, char *format, ...); 00026 void log_direct(void *logs, int type, FILE *fp); 00027 00028 00029 #endif /* _CHIMERA_LOG_H_ */