LLVM: llvm::lsp::Logger Class Reference (original) (raw)

This class represents the main interface for logging, and allows for filtering logging based on different levels of severity or significance. More...

#include "[llvm/Support/LSP/Logging.h](Logging%5F8h%5Fsource.html)"

Public Types
enum class Level { Debug, Info, Error }
The level of significance for a log message. More...
Static Public Member Functions
static LLVM_ABI_FOR_TEST void setLogLevel (Level LogLevel)
Set the severity level of the logger.
template<typename... Ts>
static void debug (const char *Fmt, Ts &&...Vals)
Initiate a log message at various severity levels.
template<typename... Ts>
static void info (const char *Fmt, Ts &&...Vals)
template<typename... Ts>
static void error (const char *Fmt, Ts &&...Vals)

This class represents the main interface for logging, and allows for filtering logging based on different levels of severity or significance.

Definition at line 21 of file Logging.h.

Level

The level of significance for a log message.

Enumerator
Debug
Info
Error

Definition at line 24 of file Logging.h.

debug()

template<typename... Ts>

void llvm::lsp::Logger::debug ( const char * Fmt, Ts &&... Vals ) inlinestatic

Initiate a log message at various severity levels.

These should be called after a call to initialize.

Definition at line 31 of file Logging.h.

References Debug, and llvm::formatv().

error()

template<typename... Ts>

void llvm::lsp::Logger::error ( const char * Fmt, Ts &&... Vals ) inlinestatic

info()

template<typename... Ts>

void llvm::lsp::Logger::info ( const char * Fmt, Ts &&... Vals ) inlinestatic

setLogLevel()

void Logger::setLogLevel ( Level LogLevel) static

The documentation for this class was generated from the following files: