/** * Print an error to the program log. * * @param filepath the path to file caused the error */ void log_warning(const char* format, ...) { va_list ap; va_start(ap, format); rsh_fprintf(rhash_data.log, "%s: ", PROGRAM_NAME); log_va_msg(format, ap); }
/** * Print an error to program log. * * @param format print a formated message to the program log */ void log_error(const char* format, ...) { va_list ap; va_start(ap, format); fprintf(rhash_data.log, _("%s: "), PROGRAM_NAME); log_va_msg(format, ap); }
/** * Print a formatted message to the program log, and flush the log stream. * * @param format print a formatted message to the program log */ void log_msg(const char* format, ...) { va_list ap; va_start(ap, format); log_va_msg(format, ap); }