20 #include <ripple/beast/utility/Journal.h>
81 : thresh_(thresh), m_console(console)
90 return level >= thresh_;
149 return m_ostream << manip;
void console(bool) override
Set whether messages are also written to the Output Window (MSVC).
Abstraction for the underlying message destination.
void threshold(severities::Severity) override
Set the minimum severity this sink will report.
std::ostringstream m_ostream
ScopedStream(ScopedStream const &other)
void write(severities::Severity, std::string const &) override
Write text to the sink at the specified severity.
static Sink & getNullSink()
Returns a Sink which does nothing.
ScopedStream operator<<(std::ostream &manip(std::ostream &)) const
Output stream support.
std::ostream & operator<<(std::ostream &manip(std::ostream &)) const
Sink & sink() const
Returns the Sink associated with this Journal.
virtual bool active(Severity level) const
Returns true if text at the passed severity produces output.
Stream stream(Severity level) const
Returns a stream for this sink, with the specified severity level.
virtual bool console() const
Returns true if a message is also written to the Output Window (MSVC).
Provide a light-weight way to check active() before string formatting.
bool active(severities::Severity) const override
Returns true if text at the passed severity produces output.
bool console() const override
Returns true if a message is also written to the Output Window (MSVC).
virtual Severity threshold() const
Returns the minimum severity level this sink will report.
Severity
Severity level / threshold of a Journal message.
virtual void write(Severity level, std::string const &text)=0
Write text to the sink at the specified severity.
~NullJournalSink() override=default
severities::Severity threshold() const override
Returns the minimum severity level this sink will report.