23void Logger::log(Level LogLevel,
const char *Fmt,
28 if (LogLevel <
Logger.LogLevel)
32 const char *LogLevelIndicators =
"DIE";
36 std::lock_guard<std::mutex> LogGuard(
Logger.Mutex);
38 "{0}[{1:%H:%M:%S.%L}] {2}\n",
39 LogLevelIndicators[
static_cast<unsigned>(LogLevel)], Timestamp, Message);
Logging utility - given an ordered specification of features, and assuming a scalar reward,...
This class represents the main interface for logging, and allows for filtering logging based on diffe...
Level
The level of significance for a log message.
static void setLogLevel(Level LogLevel)
Set the severity level of the logger.
std::chrono::time_point< std::chrono::system_clock, D > TimePoint
A time point on the system clock.
This is an optimization pass for GlobalISel generic memory operations.
auto formatv(bool Validate, const char *Fmt, Ts &&...Vals)
decltype(auto) get(const PointerIntPair< PointerTy, IntBits, IntType, PtrTraits, Info > &Pair)
LLVM_ABI raw_fd_ostream & errs()
This returns a reference to a raw_ostream for standard error.