nixd
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
lspserver::Logger Class Referenceabstract

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

#include <Logger.h>

Inheritance diagram for lspserver::Logger:
[legend]

Public Types

enum  Level : unsigned char { Debug , Verbose , Info , Error }
 

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 13 of file Logger.h.

Member Enumeration Documentation

◆ Level

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 19 of file Logger.h.

Constructor & Destructor Documentation

◆ ~Logger()

virtual lspserver::Logger::~Logger ( )
virtualdefault

Member Function Documentation

◆ indicator()

static char lspserver::Logger::indicator ( Level L)
inlinestatic

Definition at line 20 of file Logger.h.

References lspserver::fromJSON().

Referenced by lspserver::StreamLogger::log().

◆ log()

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

Implementations of this method must be thread-safe.

Implemented in lspserver::StreamLogger.


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