Included fractional second in logging output

This commit is contained in:
Nav
2023-09-10 01:23:40 +01:00
parent 9386d6c913
commit 3c532bd934

View File

@@ -25,7 +25,7 @@ void Logger::log(const LogEntry& logEntry) {
// Print the timestamp and id in a green font color:
std::cout << "\033[32m";
std::cout << logEntry.timestamp.toString("yyyy-MM-dd hh:mm:ss ").toStdString()
std::cout << logEntry.timestamp.toString("yyyy-MM-dd hh:mm:ss.zzz ").toStdString()
+ timezoneAbbreviation;
if (!logEntry.threadName.empty()) {