about summary refs log tree commit diff stats
path: root/src/logger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/logger.cpp')
-rw-r--r--src/logger.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/logger.cpp b/src/logger.cpp deleted file mode 100644 index dddcc4a..0000000 --- a/src/logger.cpp +++ /dev/null
@@ -1,27 +0,0 @@
1#include "logger.h"
2
3#include "global.h"
4
5Logger::Logger() : logfile_(GetAbsolutePath("debug.log")) {}
6
7void Logger::Flush() {
8 wxLog::Flush();
9
10 std::lock_guard guard(file_mutex_);
11 logfile_.flush();
12}
13
14Logger::~Logger() {
15 std::lock_guard guard(file_mutex_);
16 logfile_.flush();
17}
18
19void Logger::DoLogText(const wxString& msg) {
20#ifdef _WIN64
21 OutputDebugStringA(msg.c_str());
22 OutputDebugStringA("\r\n");
23#endif
24
25 std::lock_guard guard(file_mutex_);
26 logfile_ << msg << std::endl;
27}