GUIでエラーログを保存するようにした

This commit is contained in:
lltcggie 2015-12-07 13:36:49 +09:00
parent 14fe5ea21a
commit 34e0260ac8

View File

@ -1,4 +1,5 @@
#define _CRT_SECURE_NO_WARNINGS
#include <glog/logging.h>
#include <windows.h>
#include <Commctrl.h>
#include <tchar.h>
@ -22,6 +23,8 @@
#include "CDialog.h"
#include "CControl.h"
#undef ERROR
#define WM_FAILD_CREATE_DIR (WM_APP + 5)
#define WM_ON_WAIFU2X_ERROR (WM_APP + 6)
#define WM_END_THREAD (WM_APP + 7)
@ -534,6 +537,10 @@ private:
const auto cuDNNCheckEndTime = std::chrono::system_clock::now();
// Caffeのエラーログを「error_log_」に出力
google::SetLogDestination(google::ERROR, "error_log_");
google::SetLogDestination(google::FATAL, "error_log_");
Waifu2x::eWaifu2xError ret;
Waifu2x w;