From 9d8bedf580184313f419cdb60351e712712832e3 Mon Sep 17 00:00:00 2001 From: H0L0 Date: Fri, 6 Oct 2023 08:50:53 +1000 Subject: Write date to logs (#565) Next to time also write date to log files. --- NorthstarDLL/logging/logging.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NorthstarDLL/logging/logging.cpp b/NorthstarDLL/logging/logging.cpp index 2e8605d6..a68fe704 100644 --- a/NorthstarDLL/logging/logging.cpp +++ b/NorthstarDLL/logging/logging.cpp @@ -52,7 +52,7 @@ void CreateLogFiles() stream << std::put_time(¤tTime, (GetNorthstarPrefix() + "/logs/nslog%Y-%m-%d %H-%M-%S.txt").c_str()); auto sink = std::make_shared(stream.str(), false); - sink->set_pattern("[%H:%M:%S] [%n] [%l] %v"); + sink->set_pattern("[%Y-%m-%d] [%H:%M:%S] [%n] [%l] %v"); for (auto& logger : loggers) { logger->sinks().push_back(sink); -- cgit v1.2.3