lokinet/llarp/util/logging/logger_internal.cpp
2020-05-26 20:48:07 -05:00

15 lines
392 B
C++

#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}};
return date::operator<<(out, now) << " GMT [+" << ts.delta << "]";
}
} // namespace llarp