3#include <xrpl/beast/utility/Journal.h>
41 return sink_.active(level);
47 return sink_.console();
53 sink_.console(output);
59 return sink_.threshold();
65 sink_.threshold(thresh);
Abstraction for the underlying message destination.
Sink(Sink const &sink)=default
A generic endpoint for log messages.
void console(bool output) override
Set whether messages are also written to the Output Window (MSVC).
WrappedSink(beast::Journal const &journal, std::string const &prefix="")
bool console() const override
Returns true if a message is also written to the Output Window (MSVC).
bool active(beast::Severity level) const override
Returns true if text at the passed severity produces output.
void writeAlways(Severity level, std::string const &text) override
Bypass filter and write text to the sink at the specified severity.
beast::Journal::Sink & sink_
void threshold(beast::Severity thresh) override
Set the minimum severity this sink will report.
void prefix(std::string const &s)
void write(beast::Severity level, std::string const &text) override
Write text to the sink at the specified severity.
beast::Severity threshold() const override
Returns the minimum severity level this sink will report.
WrappedSink(beast::Journal::Sink &sink, std::string prefix="")
Severity
Severity level / threshold of a Journal message.