예제 #1
0
파일: log.c 프로젝트: aritama/sisop-2012-2c
/**
 * @NAME: log_error
 * @DESC: Loguea un mensaje con el siguiente formato
 *
 * [ERROR] hh:mm:ss:mmmm PROCESS_NAME/(PID:TID): MESSAGE
 *
 */
void log_error(t_log* logger, const char* message_template, ...)
{
	va_list arguments;
	va_start(arguments, message_template);
	log_write_in_level(logger, LOG_LEVEL_ERROR, message_template, arguments);
	va_end(arguments);
}
예제 #2
0
파일: log.c 프로젝트: aritama/sisop-2012-2c
/**
 * @NAME: log_warning
 * @DESC: Loguea un mensaje con el siguiente formato
 *
 * [WARNING] hh:mm:ss:mmmm PROCESS_NAME/(PID:TID): MESSAGE
 *
 */
void log_warning(t_log* logger, const char* message_template, ...)
{
	va_list arguments;
	va_start(arguments, message_template);
	log_write_in_level(logger, LOG_LEVEL_WARNING, message_template, arguments);
	va_end(arguments);
}
예제 #3
0
파일: log.c 프로젝트: amilkr/shield-copy
/**
 * @NAME: log_info
 * @DESC: Loguea un mensaje con el siguiente formato
 *
 * [INFO] hh:mm:ss:mmmm PROCESS_NAME/(PID:TID): MESSAGE
 *
 */
void log_info(t_log* logger, char** message_template, ...) {
	va_list arguments;
	va_start(arguments, message_template);
	log_write_in_level(logger, LOG_LEVEL_INFO, message_template, arguments);
	va_end(arguments);
}