MLIR
20.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 "mlir/Tools/lsp-server-support/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. More... | |
template<typename... Ts> | |
static void | debug (const char *fmt, Ts &&...vals) |
Initiate a log message at various severity levels. More... | |
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 |
|
inlinestatic |
Definition at line 42 of file Logging.h.
References Error.
Referenced by getLocationFromLoc(), getURIFromLoc(), mlir::lsp::MessageHandler::onReply(), mlir::lsp::JSONTransport::run(), mlir::lsp::runMlirLSPServer(), mlir::lsp::runPdllLSPServer(), and mlir::lsp::runTableGenLSPServer().
|
inlinestatic |
Definition at line 38 of file Logging.h.
References Info.
Referenced by mlir::lsp::MessageHandler::onCall(), mlir::lsp::MessageHandler::onNotify(), mlir::lsp::MessageHandler::onReply(), mlir::lsp::MessageHandler::outgoingNotification(), and mlir::lsp::MessageHandler::outgoingRequest().
|
static |
Set the severity level of the logger.
Definition at line 17 of file Logging.cpp.
Referenced by mlir::MlirLspServerMain(), mlir::MlirPdllLspServerMain(), and mlir::TableGenLspServerMain().