3#include <xrpl/basics/Log.h>
Abstraction for the underlying message destination.
virtual Severity threshold() const
Returns the minimum severity level this sink will report.
Sink(Sink const &sink)=default
beast::Severity threshold() const
Logs(beast::Severity level)
void writeAlways(beast::Severity level, std::string const &text) override
Bypass filter and write text to the sink at the specified severity.
void write(beast::Severity level, std::string const &text) override
Write text to the sink at the specified severity.
CaptureSink(beast::Severity threshold, std::mutex &mutex, std::stringstream &strm)
std::stringstream & strm_
std::unique_ptr< beast::Journal::Sink > makeSink(std::string const &partition, beast::Severity threshold) override
CaptureLogs(std::string *pResult)
Severity
Severity level / threshold of a Journal message.