|
rippled
|


Public Member Functions | |
| TestSink () | |
| int | count () const |
| void | reset () |
| void | write (severities::Severity level, std::string const &) override |
| Write text to the sink at the specified severity. | |
| void | writeAlways (severities::Severity level, std::string const &) override |
| Bypass filter and write text to the sink at the specified severity. | |
| 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). | |
| virtual void | console (bool output) |
| Set whether messages are also written to the Output Window (MSVC). | |
| virtual Severity | threshold () const |
| Returns the minimum severity level this sink will report. | |
| virtual void | threshold (Severity thresh) |
| Set the minimum severity this sink will report. | |
Private Attributes | |
| int | m_count |
| Severity | thresh_ |
| bool | m_console |
Definition at line 9 of file beast_Journal_test.cpp.
| beast::Journal_test::TestSink::TestSink | ( | ) |
Definition at line 15 of file beast_Journal_test.cpp.
| int beast::Journal_test::TestSink::count | ( | ) | const |
Definition at line 20 of file beast_Journal_test.cpp.
| void beast::Journal_test::TestSink::reset | ( | ) |
Definition at line 26 of file beast_Journal_test.cpp.
|
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 32 of file beast_Journal_test.cpp.
|
overridevirtual |
Bypass filter and write text to the sink at the specified severity.
Always write the message, but maintain the same formatting as if it passed through a level filter.
| level | Level to display in message. |
| text | Text to write to sink. |
Implements beast::Journal::Sink.
Definition at line 39 of file beast_Journal_test.cpp.
|
virtualinherited |
Returns true if text at the passed severity produces output.
Reimplemented in beast::WrappedSink, ripple::test::SuiteJournalSink, and beast::NullJournalSink.
Definition at line 79 of file beast_Journal.cpp.
|
virtualinherited |
Returns true if a message is also written to the Output Window (MSVC).
Reimplemented in beast::WrappedSink, and beast::NullJournalSink.
Definition at line 85 of file beast_Journal.cpp.
|
virtualinherited |
Set whether messages are also written to the Output Window (MSVC).
Reimplemented in beast::WrappedSink, and beast::NullJournalSink.
Definition at line 91 of file beast_Journal.cpp.
|
virtualinherited |
Returns the minimum severity level this sink will report.
Reimplemented in beast::WrappedSink, and beast::NullJournalSink.
Definition at line 97 of file beast_Journal.cpp.
|
virtualinherited |
Set the minimum severity this sink will report.
Reimplemented in beast::WrappedSink, and beast::NullJournalSink.
Definition at line 103 of file beast_Journal.cpp.
|
private |
Definition at line 12 of file beast_Journal_test.cpp.