示例#1
0
文件: common.c 项目: ablock/canboat
int logDebug(const char * format, ...)
{
  va_list ap;
  va_start(ap, format);

  return logBase(LOGLEVEL_DEBUG, format, ap);
}
示例#2
0
文件: common.c 项目: ablock/canboat
int logInfo(const char * format, ...)
{
  va_list ap;
  va_start(ap, format);

  return logBase(LOGLEVEL_INFO, format, ap);
}
示例#3
0
文件: common.c 项目: ablock/canboat
int logError(const char * format, ...)
{
  va_list ap;
  va_start(ap, format);

  return logBase(LOGLEVEL_ERROR, format, ap);
}
示例#4
0
文件: common.c 项目: ablock/canboat
void logAbort(const char * format, ...)
{
  va_list ap;
  va_start(ap, format);

  logBase(LOGLEVEL_FATAL, format, ap);
  exit(2);
}
示例#5
0
文件: log.c 项目: liny90626/Demo
void logFatal(const CHAR8 *fileName, const UINT64 fileLine, const char* format, ...)
{
	if(LOG_LEVEL_FATAL<= g_logConfig.level)
	{
		va_list valist;
		va_start(valist, format);
		logBase(LOG_LEVEL_FATAL, fileName, fileLine, format, valist);
		va_end(valist);
	}
}