rippled
|
Abstraction for the underlying message destination. More...
Public Member Functions | |
virtual | ~Sink ()=0 |
virtual bool | active (Severity level) const |
Returns true if text at the passed severity produces output. More... | |
virtual bool | console () const |
Returns true if a message is also written to the Output Window (MSVC). More... | |
virtual void | console (bool output) |
Set whether messages are also written to the Output Window (MSVC). More... | |
virtual Severity | threshold () const |
Returns the minimum severity level this sink will report. More... | |
virtual void | threshold (Severity thresh) |
Set the minimum severity this sink will report. More... | |
virtual void | write (Severity level, std::string const &text)=0 |
Write text to the sink at the specified severity. More... | |
Protected Member Functions | |
Sink ()=delete | |
Sink (Sink const &sink)=default | |
Sink (Severity thresh, bool console) | |
Sink & | operator= (Sink const &lhs)=delete |
Private Attributes | |
Severity | thresh_ |
bool | m_console |
|
protecteddelete |
|
explicitprotecteddefault |
|
protected |
Definition at line 80 of file beast_Journal.cpp.
|
pure virtualdefault |
|
virtual |
Returns true
if text at the passed severity produces output.
Reimplemented in beast::NullJournalSink, beast::WrappedSink, and ripple::test::SuiteJournalSink.
Definition at line 88 of file beast_Journal.cpp.
|
virtual |
Returns true
if a message is also written to the Output Window (MSVC).
Reimplemented in beast::WrappedSink, and beast::NullJournalSink.
Definition at line 94 of file beast_Journal.cpp.
|
virtual |
Set whether messages are also written to the Output Window (MSVC).
Reimplemented in beast::NullJournalSink, and beast::WrappedSink.
Definition at line 100 of file beast_Journal.cpp.
|
virtual |
Returns the minimum severity level this sink will report.
Reimplemented in beast::WrappedSink, and beast::NullJournalSink.
Definition at line 106 of file beast_Journal.cpp.
|
virtual |
Set the minimum severity this sink will report.
Reimplemented in beast::NullJournalSink, and beast::WrappedSink.
Definition at line 112 of file beast_Journal.cpp.
|
pure virtual |
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().
Implemented in beast::NullJournalSink, beast::Journal_test::TestSink, ripple::test::StreamSink, beast::WrappedSink, ripple::test::Server_test::TestSink, ripple::Logs::Sink, ripple::test::CaptureLogs::CaptureSink, ripple::test::csf::BasicSink, ripple::test::SuiteJournalSink, and ripple::test::CheckMessageLogs::CheckMessageSink.