clang-tools 19.0.0git
Public Types | Public Member Functions | Static Public Member Functions | List of all members
clang::clangd::Logger Class Referenceabstract

Interface to allow custom logging in clangd. More...

#include <Logger.h>

Inheritance diagram for clang::clangd::Logger:
Inheritance graph
[legend]

Public Types

enum  Level : unsigned char { Debug , Verbose , Info , Error }
 The significance or severity of this message. More...
 

Public Member Functions

virtual ~Logger ()=default
 
virtual void log (Level, const char *Fmt, const llvm::formatv_object_base &Message)=0
 Implementations of this method must be thread-safe.
 

Static Public Member Functions

static char indicator (Level L)
 

Detailed Description

Interface to allow custom logging in clangd.

Definition at line 22 of file Logger.h.

Member Enumeration Documentation

◆ Level

enum clang::clangd::Logger::Level : unsigned char

The significance or severity of this message.

Typically used to filter the output to an interesting level.

Enumerator
Debug 
Verbose 
Info 
Error 

Definition at line 28 of file Logger.h.

Constructor & Destructor Documentation

◆ ~Logger()

virtual clang::clangd::Logger::~Logger ( )
virtualdefault

Member Function Documentation

◆ indicator()

static char clang::clangd::Logger::indicator ( Level  L)
inlinestatic

Definition at line 29 of file Logger.h.

Referenced by clang::clangd::StreamLogger::log().

◆ log()

virtual void clang::clangd::Logger::log ( Level  ,
const char *  Fmt,
const llvm::formatv_object_base &  Message 
)
pure virtual

Implementations of this method must be thread-safe.

Implemented in clang::clangd::StreamLogger.

Referenced by clang::clangd::detail::logImpl().


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