about summary refs log tree commit diff stats
path: root/src/logger.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-11-26 14:05:29 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2023-11-26 14:05:29 -0500
commit2adce1795211fd0a42c3b4e03ab35a90bb01bccf (patch)
tree7fda2f874f0653e4c74edaaf1547fe9802b2005a /src/logger.cpp
parent7fc0e0f50ae961efbe0cac1032b03a42d41d87d5 (diff)
downloadlingo-ap-tracker-2adce1795211fd0a42c3b4e03ab35a90bb01bccf.tar.gz
lingo-ap-tracker-2adce1795211fd0a42c3b4e03ab35a90bb01bccf.tar.bz2
lingo-ap-tracker-2adce1795211fd0a42c3b4e03ab35a90bb01bccf.zip
Stop relying on correctly set working directory
Diffstat (limited to 'src/logger.cpp')
-rw-r--r--src/logger.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/logger.cpp b/src/logger.cpp index ccb721a..4b722c8 100644 --- a/src/logger.cpp +++ b/src/logger.cpp
@@ -4,11 +4,13 @@
4#include <fstream> 4#include <fstream>
5#include <mutex> 5#include <mutex>
6 6
7#include "global.h"
8
7namespace { 9namespace {
8 10
9class Logger { 11class Logger {
10 public: 12 public:
11 Logger() : logfile_("debug.log") {} 13 Logger() : logfile_(GetAbsolutePath("debug.log")) {}
12 14
13 void LogLine(const std::string& text) { 15 void LogLine(const std::string& text) {
14 std::lock_guard guard(file_mutex_); 16 std::lock_guard guard(file_mutex_);