LLDB mainline
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
lldb_private::TeeLogHandler Class Reference

A T-style log handler that multiplexes messages to two log handlers. More...

#include <Log.h>

Inheritance diagram for lldb_private::TeeLogHandler:
Inheritance graph
[legend]

Public Member Functions

 TeeLogHandler (std::shared_ptr< LogHandler > first_log_handler, std::shared_ptr< LogHandler > second_log_handler)
 
void Emit (llvm::StringRef message) override
 
bool isA (const void *ClassID) const override
 
- Public Member Functions inherited from lldb_private::LogHandler
virtual ~LogHandler ()=default
 
virtual void Emit (llvm::StringRef message)=0
 
virtual bool isA (const void *ClassID) const
 

Static Public Member Functions

static bool classof (const LogHandler *obj)
 
- Static Public Member Functions inherited from lldb_private::LogHandler
static bool classof (const LogHandler *obj)
 

Private Attributes

std::shared_ptr< LogHandlerm_first_log_handler
 
std::shared_ptr< LogHandlerm_second_log_handler
 

Static Private Attributes

static char ID
 

Detailed Description

A T-style log handler that multiplexes messages to two log handlers.

Definition at line 116 of file Log.h.

Constructor & Destructor Documentation

◆ TeeLogHandler()

TeeLogHandler::TeeLogHandler ( std::shared_ptr< LogHandler first_log_handler,
std::shared_ptr< LogHandler second_log_handler 
)

Definition at line 443 of file Log.cpp.

References m_first_log_handler, and m_second_log_handler.

Member Function Documentation

◆ classof()

static bool lldb_private::TeeLogHandler::classof ( const LogHandler obj)
inlinestatic

Definition at line 124 of file Log.h.

References ID, and lldb_private::LogHandler::isA().

◆ Emit()

void TeeLogHandler::Emit ( llvm::StringRef  message)
overridevirtual

Implements lldb_private::LogHandler.

Definition at line 451 of file Log.cpp.

References m_first_log_handler, and m_second_log_handler.

◆ isA()

bool lldb_private::TeeLogHandler::isA ( const void *  ClassID) const
inlineoverridevirtual

Reimplemented from lldb_private::LogHandler.

Definition at line 123 of file Log.h.

References ID.

Member Data Documentation

◆ ID

char TeeLogHandler::ID
staticprivate

Definition at line 129 of file Log.h.

Referenced by classof(), and isA().

◆ m_first_log_handler

std::shared_ptr<LogHandler> lldb_private::TeeLogHandler::m_first_log_handler
private

Definition at line 127 of file Log.h.

Referenced by Emit(), and TeeLogHandler().

◆ m_second_log_handler

std::shared_ptr<LogHandler> lldb_private::TeeLogHandler::m_second_log_handler
private

Definition at line 128 of file Log.h.

Referenced by Emit(), and TeeLogHandler().


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