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>
38 beast::unit_test::suite& suite)
61 char const*
const s = [level]()
65 case kTrace:
return "TRC:";
66 case kDebug:
return "DBG:";
67 case kInfo:
return "INF:";
69 case kError:
return "ERR:";
88 beast::unit_test::suite& suite,
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.