mirror of https://github.com/Icinga/icinga2.git
parent
e83592582a
commit
345ebe8061
|
@ -58,7 +58,7 @@ void StreamLogger::ProcessLogEntry(std::ostream& stream, const LogEntry& entry)
|
|||
time_t ts = entry.Timestamp;
|
||||
tm tmnow = *localtime(&ts);
|
||||
|
||||
strftime(timestamp, sizeof(timestamp), "%a, %d %b %Y %T %z", &tmnow);
|
||||
strftime(timestamp, sizeof(timestamp), "%Y/%m/%d %H:%M:%S %z", &tmnow);
|
||||
|
||||
stream << "[" << timestamp << "] "
|
||||
<< Logger::SeverityToString(entry.Severity) << "/" << entry.Facility << ": "
|
||||
|
|
Loading…
Reference in New Issue