aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarichello <artur@barichello.me>2022-01-04 15:25:20 -0300
committerGitHub <noreply@github.com>2022-01-04 15:25:20 -0300
commit6fcd21e42f6d6576a9a7aa98d75f03f0ad9b474d (patch)
tree601d703a49b94c7fd59fbeb1de63c4ef51a83d56
parent7d954b995971389716ce6e25a1c202ccd4235eb3 (diff)
parent9b514e53388a22458ef4c1bbe6ad975f49548463 (diff)
downloadNorthstarLauncher-6fcd21e42f6d6576a9a7aa98d75f03f0ad9b474d.tar.gz
NorthstarLauncher-6fcd21e42f6d6576a9a7aa98d75f03f0ad9b474d.zip
Merge pull request #18 from GeckoEidechse/main
Make timestamp year-month-day
-rw-r--r--NorthstarDedicatedTest/logging.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/NorthstarDedicatedTest/logging.cpp b/NorthstarDedicatedTest/logging.cpp
index a7e522dc..c5c5ea19 100644
--- a/NorthstarDedicatedTest/logging.cpp
+++ b/NorthstarDedicatedTest/logging.cpp
@@ -192,12 +192,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));