diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/main.cpp b/src/main.cpp index b327b25..1d7cc9e 100644 --- a/src/main.cpp +++ b/src/main.cpp | |||
@@ -4,25 +4,13 @@ | |||
4 | #include <wx/wx.h> | 4 | #include <wx/wx.h> |
5 | #endif | 5 | #endif |
6 | 6 | ||
7 | #include <fstream> | ||
8 | |||
9 | #include "global.h" | 7 | #include "global.h" |
10 | #include "tracker_config.h" | 8 | #include "tracker_config.h" |
11 | #include "tracker_frame.h" | 9 | #include "tracker_frame.h" |
12 | 10 | ||
13 | static std::ofstream* logfile; | ||
14 | |||
15 | class TrackerApp : public wxApp { | 11 | class TrackerApp : public wxApp { |
16 | public: | 12 | public: |
17 | virtual bool OnInit() { | 13 | virtual bool OnInit() { |
18 | logfile = new std::ofstream(GetAbsolutePath("debug.log")); | ||
19 | wxLog::SetActiveTarget(new wxLogStream(logfile)); | ||
20 | wxLog::SetVerbose(true); | ||
21 | |||
22 | #ifndef NDEBUG | ||
23 | wxLog::SetActiveTarget(new wxLogWindow(nullptr, "Debug Log")); | ||
24 | #endif | ||
25 | |||
26 | GetTrackerConfig().Load(); | 14 | GetTrackerConfig().Load(); |
27 | 15 | ||
28 | TrackerFrame *frame = new TrackerFrame(); | 16 | TrackerFrame *frame = new TrackerFrame(); |