aboutsummaryrefslogtreecommitdiff
path: root/src/openvic/utility/Logger.cpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-05-24 10:12:37 +0200
committer GitHub <noreply@github.com>2023-05-24 10:12:37 +0200
commit8710cb9b7967de2201b5c440593aab2df310f33d (patch)
tree60380b625c5e49ac535fd1208939511eb15ac5e3 /src/openvic/utility/Logger.cpp
parent35b038fe91d4f3c4b3ffdc4f48385ac3b2082664 (diff)
parent3daa1e17cdfa302b4436d7635ad3a7d1a6f4da1c (diff)
Merge pull request #6 from OpenVicProject/date-fix
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;