|
tlx
|
Class to hook logger output in the local thread. More...
#include <core.hpp>
Public Member Functions | |
| LoggerCollectOutput (bool echo=false) | |
| ~LoggerCollectOutput () | |
| std::string | get () |
| return transcript of log | |
| void | clear () |
| clear transcript | |
| void | append_log_line (const std::string &line) final |
| method the receive log lines | |
Public Member Functions inherited from LoggerOutputHook | |
| virtual | ~LoggerOutputHook () |
| virtual destructor | |
| virtual void | append_log_line (const std::string &line)=0 |
| method the receive log lines | |
Protected Attributes | |
| LoggerOutputHook * | next_ |
| previous logger, will be restored by destructor | |
| bool | echo_ |
| whether to echo each line to next logger output | |
| std::ostringstream | oss_ |
| string stream collecting | |
|
explicit |
| ~LoggerCollectOutput | ( | ) |
|
finalvirtual |
|
protected |
|
protected |