clang-tools 20.0.0git
Public Member Functions | List of all members
clang::clangd::StreamLogger Class Reference

#include <Logger.h>

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

Public Member Functions

 StreamLogger (llvm::raw_ostream &Logs, Logger::Level MinLevel)
 
void log (Level, const char *Fmt, const llvm::formatv_object_base &Message) override
 Write a line to the logging stream.
 
- Public Member Functions inherited from clang::clangd::Logger
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.
 

Additional Inherited Members

- Public Types inherited from clang::clangd::Logger
enum  Level : unsigned char { Debug , Verbose , Info , Error }
 The significance or severity of this message. More...
 
- Static Public Member Functions inherited from clang::clangd::Logger
static char indicator (Level L)
 

Detailed Description

Definition at line 119 of file Logger.h.

Constructor & Destructor Documentation

◆ StreamLogger()

clang::clangd::StreamLogger::StreamLogger ( llvm::raw_ostream &  Logs,
Logger::Level  MinLevel 
)
inline

Definition at line 121 of file Logger.h.

Member Function Documentation

◆ log()

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

Write a line to the logging stream.

Implements clang::clangd::Logger.

Definition at line 50 of file Logger.cpp.

References clang::clangd::Logger::indicator(), and clang::clangd::trace::log().


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