aboutsummaryrefslogtreecommitdiff
path: root/src/openvic/utility/Logger.cpp
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-05-24 01:21:41 +0200
committer Hop311 <hop3114@gmail.com>2023-05-24 01:21:41 +0200
commit3daa1e17cdfa302b4436d7635ad3a7d1a6f4da1c (patch)
tree60380b625c5e49ac535fd1208939511eb15ac5e3 /src/openvic/utility/Logger.cpp
parent35b038fe91d4f3c4b3ffdc4f48385ac3b2082664 (diff)
Date fix + Logger queuing
Diffstat (limited to 'src/openvic/utility/Logger.cpp')
-rw-r--r--src/openvic/utility/Logger.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/openvic/utility/Logger.cpp b/src/openvic/utility/Logger.cpp
index fe97473..bf9a67c 100644
--- a/src/openvic/utility/Logger.cpp
+++ b/src/openvic/utility/Logger.cpp
@@ -4,8 +4,10 @@
using namespace OpenVic;
-Logger::log_func_t Logger::info_func = [](std::string&& str) { std::cout << str; };
-Logger::log_func_t Logger::error_func = [](std::string&& str) { std::cerr << str; };
+Logger::log_func_t Logger::info_func {};
+Logger::log_queue_t Logger::info_queue {};
+Logger::log_func_t Logger::error_func {};
+Logger::log_queue_t Logger::error_queue {};
char const* Logger::get_filename(char const* filepath) {
if (filepath == nullptr) return nullptr;