Commit b2860dd6 authored by captainwong's avatar captainwong

update log2

parent ddd2bb81
......@@ -35,8 +35,10 @@ public:
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif // _CRT_SECURE_NO_WARNINGS
#include <Windows.h>
#endif // _WIN32
#include <stdio.h>
#include "3rdparty/spdlog/spdlog.h"
#ifdef _WIN32
......@@ -83,7 +85,7 @@ file_name)
sprintf_s(msg, "Log initialization failed: %s\n", ex.what());
MessageBoxA(nullptr, msg, "Error", MB_ICONERROR);
#else
std::cerr << "Log initialization failed: " << ex.what() << std::endl;
fprintf(stderr, "Log initialization failed: %s\n", ex.what());
#endif
exit(0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment