#ifndef TON_STRINGLOG_H #define TON_STRINGLOG_H #include "td/utils/logging.h" #include class StringLog : public td::LogInterface { public: StringLog() { } void append(td::CSlice new_slice, int log_level) override { str.append(new_slice.str()); } void rotate() override { } std::string get_string() const { return str; } private: std::string str; }; #endif //TON_STRINGLOG_H