MLIR  19.0.0git
Public Types | Static Public Member Functions | List of all members
mlir::lsp::Logger Class Reference

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)
 

Detailed Description

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

Definition at line 23 of file Logging.h.

Member Enumeration Documentation

◆ Level

The level of significance for a log message.

Enumerator
Debug 
Info 
Error 

Definition at line 26 of file Logging.h.

Member Function Documentation

◆ debug()

template<typename... Ts>
static void mlir::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 34 of file Logging.h.

References Debug.

◆ error()

template<typename... Ts>
static void mlir::lsp::Logger::error ( const char *  fmt,
Ts &&...  vals 
)
inlinestatic

◆ info()

template<typename... Ts>
static void mlir::lsp::Logger::info ( const char *  fmt,
Ts &&...  vals 
)
inlinestatic

◆ setLogLevel()

void Logger::setLogLevel ( Level  logLevel)
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().


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