#include #ifndef WX_PRECOMP #include #endif #include #include "global.h" #include "tracker_config.h" #include "tracker_frame.h" static std::ofstream* logfile; class TrackerApp : public wxApp { public: virtual bool OnInit() { logfile = new std::ofstream(GetAbsolutePath("debug.log")); wxLog::SetActiveTarget(new wxLogStream(logfile)); #ifndef NDEBUG wxLog::SetVerbose(true); wxLog::SetActiveTarget(new wxLogWindow(nullptr, "Debug Log")); #endif GetTrackerConfig().Load(); TrackerFrame *frame = new TrackerFrame(); frame->Show(true); return true; } }; wxIMPLEMENT_APP(TrackerApp);