Skip to content

Commit

Permalink
Write date to logs (#565)
Browse files Browse the repository at this point in the history
Next to time also write date to log files.
  • Loading branch information
H0L0theBard authored Oct 5, 2023
1 parent b269c4d commit 9d8bedf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NorthstarDLL/logging/logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9d8bedf

Please sign in to comment.