diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-05-15 13:19:34 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-05-15 13:19:34 -0400 |
commit | 0c7cb22f3da56fde00f981f9fefb971c541bc8f1 (patch) | |
tree | 956337030ead4d59ec74480280f64d39a4b9e6d4 /src/logger.cpp | |
parent | 3151ac6274e796f54f2d9269186f1fd2e69f90c3 (diff) | |
download | lingo-ap-tracker-0c7cb22f3da56fde00f981f9fefb971c541bc8f1.tar.gz lingo-ap-tracker-0c7cb22f3da56fde00f981f9fefb971c541bc8f1.tar.bz2 lingo-ap-tracker-0c7cb22f3da56fde00f981f9fefb971c541bc8f1.zip |
Logging changes
Diffstat (limited to 'src/logger.cpp')
-rw-r--r-- | src/logger.cpp | 27 |
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 | |||
5 | Logger::Logger() : logfile_(GetAbsolutePath("debug.log")) {} | ||
6 | |||
7 | void Logger::Flush() { | ||
8 | wxLog::Flush(); | ||
9 | |||
10 | std::lock_guard guard(file_mutex_); | ||
11 | logfile_.flush(); | ||
12 | } | ||
13 | |||
14 | Logger::~Logger() { | ||
15 | std::lock_guard guard(file_mutex_); | ||
16 | logfile_.flush(); | ||
17 | } | ||
18 | |||
19 | void 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 | } | ||