rippled
|
Wraps a Journal::Sink to prefix its output with a string. More...
Public Member Functions | |
WrappedSink (beast::Journal::Sink &sink, std::string const &prefix="") | |
WrappedSink (beast::Journal const &journal, std::string const &prefix="") | |
void | prefix (std::string const &s) |
bool | active (beast::severities::Severity level) const override |
Returns true if text at the passed severity produces output. More... | |
bool | console () const override |
Returns true if a message is also written to the Output Window (MSVC). More... | |
void | console (bool output) override |
Set whether messages are also written to the Output Window (MSVC). More... | |
beast::severities::Severity | threshold () const override |
Returns the minimum severity level this sink will report. More... | |
void | threshold (beast::severities::Severity thresh) override |
Set the minimum severity this sink will report. More... | |
void | write (beast::severities::Severity level, std::string const &text) override |
Write text to the sink at the specified severity. More... | |
Private Attributes | |
beast::Journal::Sink & | sink_ |
std::string | prefix_ |
Severity | thresh_ |
bool | m_console |
Wraps a Journal::Sink to prefix its output with a string.
Definition at line 33 of file WrappedSink.h.
|
explicit |
Definition at line 40 of file WrappedSink.h.
|
explicit |
Definition at line 47 of file WrappedSink.h.
void beast::WrappedSink::prefix | ( | std::string const & | s | ) |
Definition at line 55 of file WrappedSink.h.
|
overridevirtual |
Returns true
if text at the passed severity produces output.
Reimplemented from beast::Journal::Sink.
Definition at line 61 of file WrappedSink.h.
|
overridevirtual |
Returns true
if a message is also written to the Output Window (MSVC).
Reimplemented from beast::Journal::Sink.
Definition at line 67 of file WrappedSink.h.
|
overridevirtual |
Set whether messages are also written to the Output Window (MSVC).
Reimplemented from beast::Journal::Sink.
Definition at line 73 of file WrappedSink.h.
|
overridevirtual |
Returns the minimum severity level this sink will report.
Reimplemented from beast::Journal::Sink.
Definition at line 79 of file WrappedSink.h.
|
overridevirtual |
Set the minimum severity this sink will report.
Reimplemented from beast::Journal::Sink.
Definition at line 85 of file WrappedSink.h.
|
overridevirtual |
Write text to the sink at the specified severity.
A conforming implementation will not write the text if the passed level is below the current threshold().
Implements beast::Journal::Sink.
Definition at line 91 of file WrappedSink.h.
|
private |
Definition at line 36 of file WrappedSink.h.
|
private |
Definition at line 37 of file WrappedSink.h.