16 va_start(args, pFormat);
17 vswprintf_s(pMsg, 8192, pFormat, args);
20 time_t
t = time(NULL);
21 struct tm tm = *localtime(&
t);
22 printf(
"[%04d/%02d/%02d %02d:%02d:%02d] %S\n", tm.tm_year + 1900,
23 tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec,
33 va_start(args, pFormat);
34 vswprintf_s(pMsg, 8192, pFormat, args);
37 time_t
t = time(NULL);
38 struct tm tm = *localtime(&
t);
39 printf(
"[%04d/%02d/%02d %02d:%02d:%02d] %S\n", tm.tm_year + 1900,
40 tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec,
52 f = fopen(
"errorlog.txt",
"a");
55 fprintf(
f,
"%s\n",
v1);