00001 /* 00002 ** AUTHORS: 00003 ** Rama Alebouyeh (rama[at]cs.ucsb.edu) 00004 ** Matthew S Allen (msa[at]cs.ucsb.edu) 00005 */ 00006 #ifndef _CHIMERA_LOG_H_ 00007 #define _CHIMERA_LOG_H_ 00008 00009 enum { 00010 LOG_ERROR, /* error messages (stderr) */ 00011 LOG_WARN, /* warning messages (none) */ 00012 LOG_DEBUG, /* debugging messages (none) */ 00013 LOG_KEYDEBUG, /* debugging messages for key subsystem (none) */ 00014 LOG_NETWORKDEBUG, /* debugging messages for network layer (none) */ 00015 LOG_ROUTING, /* debugging the routing table (none) */ 00016 LOG_COUNT /* count of log message types */ 00017 }; 00018 00019 00020 void * log_init(); 00021 void log_message(void *logs, int type, char *format, ...); 00022 void log_direct(void *logs, int type, FILE *fp); 00023 00024 00025 #endif /* _CHIMERA_LOG_H_ */