/* ** $Id: log.h,v 1.1 2008/02/01 20:14:43 krishnap Exp $ ** ** Matthew Allen ** description: */ #ifndef _CHIMERA_LOG_H_ #define _CHIMERA_LOG_H_ #define LOGS 0 #ifdef __cplusplus extern "C" { #endif enum { LOG_ERROR, /* error messages (stderr) */ LOG_WARN, /* warning messages (none) */ LOG_DEBUG, /* debugging messages (none) */ LOG_KEYDEBUG, /* debugging messages for key subsystem (none) */ LOG_NETWORKDEBUG, /* debugging messages for network layer (none) */ LOG_ROUTING, /* debugging the routing table (none) */ LOG_CASHMERE, /* logging for cashmere */ LOG_BLUEMOON, /* logging for bluemoon*/ LOG_DATA, /* for measurement and analysis (none) */ LOG_COUNT /* count of log message types */ }; void *log_init (); void log_message (void *logs, int type, char *format, ...); void log_direct (void *logs, int type, FILE * fp); #ifdef __cplusplus } #endif #endif /* _CHIMERA_LOG_H_ */