in src/consolelogger.c [245:281]
void consolelogger_log(LOG_CATEGORY log_category, const char* file, const char* func, int line, unsigned int options, const char* format, ...)
{
time_t t;
va_list args;
va_start(args, format);
t = time(NULL);
switch (log_category)
{
case AZ_LOG_CRITICAL:
(void)printf("Critical: Time:%.24s File:%s Func:%s Line:%d ", ctime(&t), file, func, line);
break;
case AZ_LOG_ERROR:
(void)printf("Error: Time:%.24s File:%s Func:%s Line:%d ", ctime(&t), file, func, line);
break;
case AZ_LOG_WARNING:
(void)printf("Warning: Time:%.24s File:%s Func:%s Line:%d ", ctime(&t), file, func, line);
break;
case AZ_LOG_INFO:
(void)printf("Info: ");
break;
case AZ_LOG_VERBOSE:
(void)printf("Verbose: ");
break;
default:
break;
}
(void)vprintf(format, args);
va_end(args);
if (options & LOG_LINE)
{
(void)printf("\r\n");
}
}