lokinet/llarp/util/logging/logger_internal.cpp

15 lines
392 B
C++
Raw Normal View History

#include <util/logging/logger_internal.hpp>
#include <date/date.h>
namespace llarp
{
std::ostream&
operator<<(std::ostream& out, const log_timestamp& ts)
{
std::chrono::time_point<std::chrono::system_clock, std::chrono::milliseconds> now{
std::chrono::milliseconds{ts.now}};
2020-02-25 17:19:40 +00:00
return date::operator<<(out, now) << " UTC [+" << ts.delta << "]";
}
} // namespace llarp