You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lokinet/llarp/util/logging/logger_internal.cpp

15 lines
379 B
C++

#include "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