20 #ifndef BEAST_UTILITY_WRAPPEDSINK_H_INCLUDED
21 #define BEAST_UTILITY_WRAPPEDSINK_H_INCLUDED
23 #include <ripple/beast/utility/Journal.h>
Abstraction for the underlying message destination.
bool console() const override
Returns true if a message is also written to the Output Window (MSVC).
void write(beast::severities::Severity level, std::string const &text) override
Write text to the sink at the specified severity.
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="")
beast::Journal::Sink & sink_
beast::severities::Severity threshold() const override
Returns the minimum severity level this sink will report.
void threshold(beast::severities::Severity thresh) override
Set the minimum severity this sink will report.
virtual bool active(Severity level) const
Returns true if text at the passed severity produces output.
virtual bool console() const
Returns true if a message is also written to the Output Window (MSVC).
A generic endpoint for log messages.
bool active(beast::severities::Severity level) const override
Returns true if text at the passed severity produces output.
virtual Severity threshold() const
Returns the minimum severity level this sink will report.
Severity
Severity level / threshold of a Journal message.
void prefix(std::string const &s)
Wraps a Journal::Sink to prefix its output with a string.
WrappedSink(beast::Journal::Sink &sink, std::string const &prefix="")
virtual void write(Severity level, std::string const &text)=0
Write text to the sink at the specified severity.