LLVM: lib/Support/LSP/Logging.cpp Source File (original) (raw)

1

2

3

4

5

6

7

8

12

13using namespace llvm;

15

17

18Logger &Logger::get() {

21}

22

23void Logger::log(Level LogLevel, const char *Fmt,

26

27

28 if (LogLevel < Logger.LogLevel)

29 return;

30

31

32 const char *LogLevelIndicators = "DIE";

33

34

36 std::lock_guardstd::mutex LogGuard(Logger.Mutex);

38 "{0}[{1:%H:%M:%S.%L}] {2}\n",

39 LogLevelIndicators[static_cast<unsigned>(LogLevel)], Timestamp, Message);

41}

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 LLVM_ABI_FOR_TEST void setLogLevel(Level LogLevel)

Set the severity level of the logger.

Definition Logging.cpp:16

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.