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.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_);