mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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…
x
Reference in New Issue
Block a user