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