|
rippled
|
sink for writing all log messages to a stringstream More...


Public Member Functions | |
| CaptureSink (beast::severities::Severity threshold, std::mutex &mutex, std::stringstream &strm) | |
| void | write (beast::severities::Severity level, std::string const &text) override |
| Write text to the sink at the specified severity. | |
| void | writeAlways (beast::severities::Severity level, std::string const &text) 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 | |
| std::mutex & | strmMutex_ |
| std::stringstream & | strm_ |
| Severity | thresh_ |
| bool | m_console |
sink for writing all log messages to a stringstream
Definition at line 43 of file CaptureLogs.h.
| ripple::test::CaptureLogs::CaptureSink::CaptureSink | ( | beast::severities::Severity | threshold, |
| std::mutex & | mutex, | ||
| std::stringstream & | strm | ||
| ) |
Definition at line 49 of file CaptureLogs.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 60 of file CaptureLogs.h.
|
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 68 of file CaptureLogs.h.
|
virtualinherited |
Returns true if text at the passed severity produces output.
Reimplemented in beast::WrappedSink, ripple::test::SuiteJournalSink, and beast::NullJournalSink.
Definition at line 98 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 104 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 110 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 116 of file beast_Journal.cpp.
|
virtualinherited |
Set the minimum severity this sink will report.
Reimplemented in beast::WrappedSink, and beast::NullJournalSink.
Definition at line 122 of file beast_Journal.cpp.
|
private |
Definition at line 45 of file CaptureLogs.h.
|
private |
Definition at line 46 of file CaptureLogs.h.