Example #1
0
int logDebug(const char * format, ...)
{
  va_list ap;
  va_start(ap, format);

  return logBase(LOGLEVEL_DEBUG, format, ap);
}
Example #2
0
int logInfo(const char * format, ...)
{
  va_list ap;
  va_start(ap, format);

  return logBase(LOGLEVEL_INFO, format, ap);
}
Example #3
0
int logError(const char * format, ...)
{
  va_list ap;
  va_start(ap, format);

  return logBase(LOGLEVEL_ERROR, format, ap);
}
Example #4
0
void logAbort(const char * format, ...)
{
  va_list ap;
  va_start(ap, format);

  logBase(LOGLEVEL_FATAL, format, ap);
  exit(2);
}
Example #5
0
File: log.c Project: 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);
	}
}