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