diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2021-12-29 00:42:44 +0100 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2021-12-29 00:42:44 +0100 |
commit | 9b514e53388a22458ef4c1bbe6ad975f49548463 (patch) | |
tree | 73704f0b8de30079470f188f1d791d54db6f789d | |
parent | e5684053f4127bd02681ef46e0bfeada83b2f63c (diff) | |
download | NorthstarLauncher-9b514e53388a22458ef4c1bbe6ad975f49548463.tar.gz NorthstarLauncher-9b514e53388a22458ef4c1bbe6ad975f49548463.zip |
Make timestamp year-month-day
instead of day-month-year
-rw-r--r-- | NorthstarDedicatedTest/logging.cpp | 4 |
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(¤tTime, "R2Northstar/logs/nslog%d-%m-%Y %H-%M-%S.txt"); + stream << std::put_time(¤tTime, "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)); |