#include <folly/experimental/logging/LoggerDB.h>
#include <folly/init/Init.h>
#include <folly/portability/GTest.h>
+#include <folly/portability/Stdlib.h>
using namespace folly;
GlogStyleFormatter formatter;
std::chrono::system_clock::time_point logTimePoint{
- std::chrono::nanoseconds{timestampNS}};
+ std::chrono::duration_cast<std::chrono::system_clock::duration>(
+ std::chrono::nanoseconds{timestampNS})};
LogMessage logMessage{
category, level, logTimePoint, filename, lineNumber, msg.str()};