Thrill
0.1
|
#include <core.hpp>
Public Member Functions | |
LoggerCollectOutput (bool echo=false) | |
~LoggerCollectOutput () | |
void | append_log_line (const std::string &line) final |
method the receive log lines More... | |
void | clear () |
clear transcript More... | |
std::string | get () |
return transcript of log More... | |
Public Member Functions inherited from LoggerOutputHook | |
virtual | ~LoggerOutputHook () |
virtual destructor More... | |
Protected Attributes | |
bool | echo_ |
whether to echo each line to next logger output More... | |
LoggerOutputHook * | next_ |
previous logger, will be restored by destructor More... | |
std::ostringstream | oss_ |
string stream collecting More... | |
|
explicit |
Definition at line 118 of file core.cpp.
References LoggerCollectOutput::next_, and tlx::set_logger_output_hook().
~LoggerCollectOutput | ( | ) |
Definition at line 123 of file core.cpp.
References LoggerCollectOutput::next_, and tlx::set_logger_output_hook().
|
finalvirtual |
method the receive log lines
Implements LoggerOutputHook.
Definition at line 136 of file core.cpp.
References LoggerOutputHook::append_log_line(), LoggerCollectOutput::echo_, LoggerCollectOutput::next_, and LoggerCollectOutput::oss_.
void clear | ( | ) |
std::string get | ( | ) |
return transcript of log
Definition at line 132 of file core.cpp.
References LoggerCollectOutput::oss_.
|
protected |
whether to echo each line to next logger output
Definition at line 221 of file core.hpp.
Referenced by LoggerCollectOutput::append_log_line().
|
protected |
previous logger, will be restored by destructor
Definition at line 218 of file core.hpp.
Referenced by LoggerCollectOutput::append_log_line(), LoggerCollectOutput::LoggerCollectOutput(), and LoggerCollectOutput::~LoggerCollectOutput().
|
protected |
string stream collecting
Definition at line 224 of file core.hpp.
Referenced by LoggerCollectOutput::append_log_line(), LoggerCollectOutput::clear(), and LoggerCollectOutput::get().