20 #ifndef TEST_UNIT_TEST_SUITE_JOURNAL_H
21 #define TEST_UNIT_TEST_SUITE_JOURNAL_H
23 #include <ripple/beast/unit_test.h>
24 #include <ripple/beast/utility/Journal.h>
39 beast::unit_test::suite& suite)
62 char const*
const s = [level]() {
96 beast::unit_test::suite& suite,
98 : sink_(partition,
threshold, suite), journal_(sink_)
Abstraction for the underlying message destination.
StreamSink(beast::severities::Severity threshold=beast::severities::kDebug)
A namespace for easy access to logging severity values.
void write(beast::severities::Severity level, std::string const &text) override
Write text to the sink at the specified severity.
A generic endpoint for log messages.
std::stringstream const & messages() const
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
virtual Severity threshold() const
Returns the minimum severity level this sink will report.
SuiteJournalSink(std::string const &partition, beast::severities::Severity threshold, beast::unit_test::suite &suite)
SuiteJournal(std::string const &partition, beast::unit_test::suite &suite, beast::severities::Severity threshold=beast::severities::kFatal)
Severity
Severity level / threshold of a Journal message.
bool active(beast::severities::Severity level) const override
Returns true if text at the passed severity produces output.
beast::unit_test::suite & suite_
void write(beast::severities::Severity level, std::string const &text) override
Write text to the sink at the specified severity.