3#include <xrpl/beast/unit_test.h>
4#include <xrpl/beast/utility/Journal.h>
50 char const*
const s = [level]() {
59 case Severity::Warning:
Abstraction for the underlying message destination.
virtual Severity threshold() const
Returns the minimum severity level this sink will report.
Sink(Sink const &sink)=default
A generic endpoint for log messages.
void write(beast::Severity level, std::string const &text) override
Write text to the sink at the specified severity.
std::stringstream const & messages() const
void writeAlways(beast::Severity level, std::string const &text) override
Bypass filter and write text to the sink at the specified severity.
StreamSink(beast::Severity threshold=beast::Severity::Debug)
SuiteJournalSink(std::string const &partition, beast::Severity threshold, beast::unit_test::Suite &suite)
void writeAlways(beast::Severity level, std::string const &text) override
Bypass filter and write text to the sink at the specified severity.
beast::unit_test::Suite & suite_
bool active(beast::Severity level) const override
Returns true if text at the passed severity produces output.
void write(beast::Severity level, std::string const &text) override
Write text to the sink at the specified severity.
SuiteJournal(std::string const &partition, beast::unit_test::Suite &suite, beast::Severity threshold=beast::Severity::Fatal)
Severity
Severity level / threshold of a Journal message.