void sys_error(char* format,...){ va_list va; va_start(va,format); log_va(format,va); va_end(va); exit(1); }
void log(const char *fmt, ...) { va_list args; va_start(args, fmt); log_va(fmt, args); va_end(args); }
void LoggerStdOut::log(uint8 level,const char *fmt,...) { va_list ap; va_start(ap,fmt); log_va(level,fmt,ap); va_end(ap); }
void ilog(ilogfile dest, const char *format, ...) { va_list args; va_start(args, format); log_va(dest, 0, format, args); va_end(args); }
/************************************************************************* ************************************************************************** can_log - Write information to the log not specifically pertaining to a particular field. Input: level - severity level of the event type - type of thing that generated the event conf - pointer to CAN_CONFIG stats - pointer to CAN_CONTEXT which accumulates statistics fmt - printf-style format string ... - arguments required by the printf-style format string in fmt Output: stats - pointer to updated statistics **************************************************************************/ void can_log(const LOGL level, const LOGTP type, const CAN_CONFIG *const conf, CAN_CONTEXT *const stats, const char *const fmt, ...) { va_list ap; va_start(ap, fmt); log_va(level, type, conf, (FIELD*)NULL, (FIELD_SPEC *)NULL, UNSET, UNSET, UNSET, UNSET, stats, fmt, ap); va_end(ap); }
/************************************************************************* ************************************************************************** log_chk - Write information to the log about the results of checking the specified ANSI/NIST ITEM, SUBFIELD, SUBFIELD, or RECORD, depending on whether the corresponding indices and pointers are defined. Input: sev - severity level field - pointer the ANSI/NIST FIELD containing the item fd - pointer to the relevant FIELD_SPEC rec_i - 0-based record index, or UNSET fld_i - 0-based field index, or UNSET sub_i - 0-based subfield index, or UNSET itm_i - 0-based item index, or UNSET stats - pointer to CAN_CONTEXT which accumulates statistics fmt - printf-style format string ... - arguments required by the printf-style format string in fmt Output: stats - pointer to updated statistics **************************************************************************/ void log_chk(const LOGL sev, const CAN_CONFIG *conf, const FIELD *const field, const FIELD_SPEC *const fd, const int rec_i, const int fld_i, const int sub_i, const int itm_i, CAN_CONTEXT *const stats, const char *const fmt, ...) { va_list ap; va_start(ap, fmt); log_va(sev, LOGTP_CHECK, conf, field, fd, rec_i, fld_i, sub_i, itm_i, stats, fmt, ap); va_end(ap); }
void adv_svgalib_log_va(const char *text, va_list arg) { log_va(text, arg); }
void vslog(const ilogfile dest, const unsigned int snomask, const char *const fmt, va_list ap) { log_va(dest, snomask, fmt, ap); }