Added more logging

This commit is contained in:
2021-12-29 20:15:15 +03:00
parent 690f621f5b
commit d1ab2b86e2
3 changed files with 225 additions and 223 deletions

View File

@@ -4,6 +4,7 @@
extern std::wofstream logfile;
std::wstring GetTimeStamp();
std::wstring PrintTitle();
template <typename T1>
void diag_log(T1 arg1) {
@@ -26,6 +27,10 @@ void diag_log(T1 arg1, T2 arg2, T3 arg3) {
template <typename T1, typename T2, typename T3, typename T4>
void diag_log(T1 arg1, T2 arg2, T3 arg3, T4 arg4) {
//std::wcout << GetTimeStamp() << arg1 << ' ' << arg2 << ' ' << arg3 << ' ' << arg4 << std::endl;
//if (typeid(T4) == typeid(WCHAR)) {
// logfile << GetTimeStamp() << arg1 << ' ' << arg2 << ' ' << arg3 << ' ' << PrintTitle() << std::endl;
// return;
//}
logfile << GetTimeStamp() << arg1 << ' ' << arg2 << ' ' << arg3 << ' ' << arg4 << std::endl;
}