LLVM 22.0.0git
|
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"
Public Types | |
enum class | Level { Debug , Info , Error } |
The level of significance for a log message. More... |
Static Public Member Functions | |
static 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.
|
strong |
|
inlinestatic |
Initiate a log message at various severity levels.
These should be called after a call to initialize.
Definition at line 32 of file Logging.h.
References Debug, and llvm::formatv().
|
inlinestatic |
Definition at line 38 of file Logging.h.
References Error, and llvm::formatv().
Referenced by llvm::lsp::MessageHandler::onReply(), and llvm::lsp::JSONTransport::run().
|
inlinestatic |
Definition at line 35 of file Logging.h.
References llvm::formatv(), and Info.
Referenced by llvm::lsp::MessageHandler::onCall(), llvm::lsp::MessageHandler::onNotify(), llvm::lsp::MessageHandler::onReply(), llvm::lsp::MessageHandler::outgoingNotification(), and llvm::lsp::MessageHandler::outgoingRequest().
|
static |
Set the severity level of the logger.
Definition at line 16 of file Logging.cpp.
References llvm::get().