mirror of
https://github.com/KjellKod/g3log.git
synced 2024-12-12 10:23:50 +01:00
Add back ugly tab
Signed-off-by: Ricky Zhang <rickyzhang@gmail.com>
This commit is contained in:
parent
fc615b4ac0
commit
d747de2840
@ -79,8 +79,8 @@ namespace g3 {
|
||||
std::string header() {
|
||||
std::ostringstream ss_entry;
|
||||
// Day Month Date Time Year: is written as "%a %b %d %H:%M:%S %Y" and formatted output as : Wed Sep 19 08:28:16 2012
|
||||
ss_entry << "g3log created log at: " << g3::localtime_formatted(g3::systemtime_now(), "%a %b %d %H:%M:%S %Y") << "\n";
|
||||
ss_entry << "LOG format: [YYYY/MM/DD hh:mm:ss uuu* LEVEL FILE->FUNCTION:LINE] message";
|
||||
ss_entry << "\t\tg3log created log at: " << g3::localtime_formatted(g3::systemtime_now(), "%a %b %d %H:%M:%S %Y") << "\n";
|
||||
ss_entry << "\t\tLOG format: [YYYY/MM/DD hh:mm:ss uuu* LEVEL FILE->FUNCTION:LINE] message";
|
||||
ss_entry << "\t\t(uuu*: microseconds fractions of the seconds value)\n\n";
|
||||
return ss_entry.str();
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ namespace g3 {
|
||||
std::string LogDetailsToString(const LogMessage& msg) {
|
||||
std::string out;
|
||||
out.append(msg.timestamp() + "\t"
|
||||
+ msg.level() + " [" + msg.file() + "->" + msg.function() + ":" + msg.line() + "]: ");
|
||||
+ msg.level() + " [" + msg.file() + "->" + msg.function() + ":" + msg.line() + "]\t");
|
||||
return out;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user