| 
    rippled
    
   | 
 
Wraps a Journal::Sink to prefix its output with a string. More...
#include <WrappedSink.h>


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.   | |
| bool | console () const override | 
Returns true if a message is also written to the Output Window (MSVC).   | |
| void | console (bool output) override | 
| Set whether messages are also written to the Output Window (MSVC).   | |
| beast::severities::Severity | threshold () const override | 
| Returns the minimum severity level this sink will report.   | |
| void | threshold (beast::severities::Severity thresh) override | 
| Set the minimum severity this sink will report.   | |
| void | write (beast::severities::Severity level, std::string const &text) override | 
| Write text to the sink at the specified severity.   | |
| void | writeAlways (severities::Severity level, std::string const &text) override | 
| Bypass filter and write text to the sink at the specified severity.   | |
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 14 of file WrappedSink.h.
      
  | 
  explicit | 
Definition at line 21 of file WrappedSink.h.
      
  | 
  explicit | 
Definition at line 28 of file WrappedSink.h.
| void beast::WrappedSink::prefix | ( | std::string const & | s | ) | 
Definition at line 36 of file WrappedSink.h.
      
  | 
  overridevirtual | 
Returns true if text at the passed severity produces output. 
Reimplemented from beast::Journal::Sink.
Definition at line 42 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 48 of file WrappedSink.h.
      
  | 
  overridevirtual | 
Set whether messages are also written to the Output Window (MSVC).
Reimplemented from beast::Journal::Sink.
Definition at line 54 of file WrappedSink.h.
      
  | 
  overridevirtual | 
Returns the minimum severity level this sink will report.
Reimplemented from beast::Journal::Sink.
Definition at line 60 of file WrappedSink.h.
      
  | 
  overridevirtual | 
Set the minimum severity this sink will report.
Reimplemented from beast::Journal::Sink.
Definition at line 66 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 72 of file WrappedSink.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 79 of file WrappedSink.h.
      
  | 
  private | 
Definition at line 17 of file WrappedSink.h.
      
  | 
  private | 
Definition at line 18 of file WrappedSink.h.