示例#1
0
文件: output.c 项目: rhash/RHash
/**
 * 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);
}
示例#2
0
文件: output.c 项目: SBasalaev/RHash
/**
 * 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);
}
示例#3
0
文件: output.c 项目: rhash/RHash
/**
 * 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);
}