aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/logging/logging.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDLL/logging/logging.cpp')
-rw-r--r--NorthstarDLL/logging/logging.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/NorthstarDLL/logging/logging.cpp b/NorthstarDLL/logging/logging.cpp
index 6bb57170..8b906911 100644
--- a/NorthstarDLL/logging/logging.cpp
+++ b/NorthstarDLL/logging/logging.cpp
@@ -203,3 +203,11 @@ void InitialiseLogging()
loggers.push_back(NS::log::rpak);
loggers.push_back(NS::log::echo);
}
+
+void NS::log::FlushLoggers()
+{
+ for (auto& logger : loggers)
+ logger->flush();
+
+ spdlog::default_logger()->flush();
+}