11 #include "llvm/Support/raw_ostream.h" 29 const llvm::formatv_object_base &
Message) {
31 L->log(Level, Message);
34 std::lock_guard<std::mutex> Guard(Mu);
35 llvm::errs() << Message <<
"\n";
40 if (
const char *Slash = strrchr(Filename,
'/'))
42 if (
const char *Backslash = strrchr(Filename,
'\\'))
void log(Logger::Level, const llvm::formatv_object_base &)
static const StringRef Message
const char * debugType(const char *Filename)
std::string Filename
Filename as a string.
Interface to allow custom logging in clangd.
LoggingSession(clangd::Logger &Instance)
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//