#include <folly/logging/LogMessage.h>
#include <folly/logging/LogCategory.h>
#include <folly/logging/LoggerDB.h>
#include <folly/system/ThreadId.h>
system_clock;
namespace {
std::string getContextStringFromCategory(const folly::LogCategory* category) { … }
}
namespace folly {
LogMessage::LogMessage(
const LogCategory* category,
LogLevel level,
StringPiece filename,
unsigned int lineNumber,
StringPiece functionName,
std::string&& msg)
: … { … }
LogMessage::LogMessage(
const LogCategory* category,
LogLevel level,
system_clock::time_point timestamp,
StringPiece filename,
unsigned int lineNumber,
StringPiece functionName,
std::string&& msg)
: … { … }
StringPiece LogMessage::getFileBaseName() const { … }
void LogMessage::sanitizeMessage() { … }
}