aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/utility/Logger.cpp
diff options
context:
space:
mode:
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;
});
}