rippled
Loading...
Searching...
No Matches
TestSink.h
1#pragma once
2
3#include <xrpl/beast/utility/Journal.h>
4
5namespace xrpl {
7{
8public:
9 static TestSink&
11 {
12 static TestSink sink{};
13 return sink;
14 }
15
17
18 void
19 write(beast::severities::Severity level, std::string const& text) override;
20
21 void
22 writeAlways(beast::severities::Severity level, std::string const& text) override;
23};
24} // namespace xrpl
Abstraction for the underlying message destination.
Definition Journal.h:56
virtual Severity threshold() const
Returns the minimum severity level this sink will report.
void writeAlways(beast::severities::Severity level, std::string const &text) override
Bypass filter and write text to the sink at the specified severity.
Definition TestSink.cpp:31
static TestSink & instance()
Definition TestSink.h:10
void write(beast::severities::Severity level, std::string const &text) override
Write text to the sink at the specified severity.
Definition TestSink.cpp:23
Severity
Severity level / threshold of a Journal message.
Definition Journal.h:12
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5