aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/utility/Logger.cpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2023-10-29 23:16:14 +0100
committer hop311 <hop3114@gmail.com>2023-11-07 19:32:43 +0100
commit8a00697a0e6a4168894594eadc373836a1689eea (patch)
treea8af4d6c77764644305be324b32b96b9c272e563 /src/openvic-simulation/utility/Logger.cpp
parent61e5c971cd371950a3bd659799208d8143dddd4f (diff)
Country: datatypes + TGC compat changes
Diffstat (limited to 'src/openvic-simulation/utility/Logger.cpp')
-rw-r--r--src/openvic-simulation/utility/Logger.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/openvic-simulation/utility/Logger.cpp b/src/openvic-simulation/utility/Logger.cpp
index 5e25c98..63dfd6c 100644
--- a/src/openvic-simulation/utility/Logger.cpp
+++ b/src/openvic-simulation/utility/Logger.cpp
@@ -6,13 +6,13 @@ using namespace OpenVic;
void Logger::set_logger_funcs() {
Logger::set_info_func([](std::string&& str) {
- std::cout << str;
+ std::cout << "[INFO] " << str;
});
Logger::set_warning_func([](std::string&& str) {
- std::cerr << str;
+ std::cerr << "[WARNING] " << str;
});
Logger::set_error_func([](std::string&& str) {
- std::cerr << str;
+ std::cerr << "[ERROR] " << str;
});
}