aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2021-12-29 00:42:44 +0100
committerGeckoEidechse <gecko.eidechse+git@pm.me>2021-12-29 00:42:44 +0100
commit9b514e53388a22458ef4c1bbe6ad975f49548463 (patch)
tree73704f0b8de30079470f188f1d791d54db6f789d
parente5684053f4127bd02681ef46e0bfeada83b2f63c (diff)
downloadNorthstarLauncher-9b514e53388a22458ef4c1bbe6ad975f49548463.tar.gz
NorthstarLauncher-9b514e53388a22458ef4c1bbe6ad975f49548463.zip
Make timestamp year-month-day
instead of day-month-year
-rw-r--r--NorthstarDedicatedTest/logging.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/NorthstarDedicatedTest/logging.cpp b/NorthstarDedicatedTest/logging.cpp
index 09ae6961..fb5a11fc 100644
--- a/NorthstarDedicatedTest/logging.cpp
+++ b/NorthstarDedicatedTest/logging.cpp
@@ -176,12 +176,12 @@ void InitialiseLogging()
spdlog::flush_on(spdlog::level::info);
// log file stuff
- // generate log file, format should be nslog%d-%m-%Y %H-%M-%S.txt in gamedir/R2Northstar/logs
+ // generate log file, format should be nslog%Y-%m-%d %H-%M-%S.txt in gamedir/R2Northstar/logs
// todo: might be good to delete logs that are too old
time_t time = std::time(nullptr);
tm currentTime = *std::localtime(&time);
std::stringstream stream;
- stream << std::put_time(&currentTime, "R2Northstar/logs/nslog%d-%m-%Y %H-%M-%S.txt");
+ stream << std::put_time(&currentTime, "R2Northstar/logs/nslog%Y-%m-%d %H-%M-%S.txt");
// create logger
spdlog::default_logger()->sinks().push_back(std::make_shared<spdlog::sinks::basic_file_sink_mt>(stream.str(), false));