aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH0L0 <H0L0.Business@outlook.com>2023-10-06 08:50:53 +1000
committerGitHub <noreply@github.com>2023-10-06 00:50:53 +0200
commit9d8bedf580184313f419cdb60351e712712832e3 (patch)
treec41fb0eb5e40dcc16a35f8837e8f969c1293b1ab
parentb269c4df616be0ff3f669021726072edf1214c88 (diff)
downloadNorthstarLauncher-9d8bedf580184313f419cdb60351e712712832e3.tar.gz
NorthstarLauncher-9d8bedf580184313f419cdb60351e712712832e3.zip
Write date to logs (#565)
Next to time also write date to log files.
-rw-r--r--NorthstarDLL/logging/logging.cpp2
1 files changed, 1 insertions, 1 deletions
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(&currentTime, (GetNorthstarPrefix() + "/logs/nslog%Y-%m-%d %H-%M-%S.txt").c_str());
auto sink = std::make_shared<spdlog::sinks::basic_file_sink_mt>(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);