ark::debuglog::InMemoryLogOutput

Defined in header “ark/debuglog/in_memory_log_output.hh”.


A log output that redirects text to an in-memory store. This is normally suitable for testing debuglog output. The in-memory store can be accessed at any time.

Methods

  • ~InMemoryLogOutput()
    Destructor, for clean up.

  • void log(const DebugLogStatement & statement)
    This is called when the logger wants to emit a log statement to the output.

  • std::string str()
    Returns everything that has been logged to date, as a string.