clang-tools  14.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]
Collaboration diagram for clang::clangd::StreamLogger:
Collaboration 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. More...
 
- Public Member Functions inherited from clang::clangd::Logger
virtual ~Logger ()=default
 

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

Constructor & Destructor Documentation

◆ StreamLogger()

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

Definition at line 122 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.


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