in src/main/cpp/bootstrap/utilsfuncs.cpp [217:238]
void logV(bool appendSysError, bool showMsgBox, const char *format, va_list args) {
char msg[4096] = "";
vsnprintf(msg, 4096, format, args);
if (appendSysError) {
char sysErr[512] = "";
getSysError(sysErr, 512);
strncat(msg, sysErr, 4096 - strlen(msg));
}
if (!gLogFileName.empty()) {
FILE *file = fopen(gLogFileName.c_str(), "a");
if (file) {
fprintf(file, "%s\n", msg);
fclose(file);
}
}
if (showMsgBox) {
::MessageBox(NULL, msg, "Error", MB_OK | MB_ICONSTOP);
}
}