Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Debug.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define __DebuggingLoggerUtility_HeaderPlusPlus__

#include <iostream>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <streambuf>
Expand Down Expand Up @@ -79,7 +80,7 @@ class LogUtil //replaces std::clog, std::cerr, std::cout with file streams
std::tm *local_time = std::localtime(&curr_time_raw);

std::stringstream time;
time << "[" << local_time->tm_hour << ":" << local_time->tm_min << ":" << local_time->tm_sec << "] ";
time << "[" << std::put_time(local_time, "%T") << "] ";

return time.str();
}
Expand Down