| 
    rippled
    
   | 
 
Log manager for CaptureSinks. More...
#include <CaptureLogs.h>


Classes | |
| class | CaptureSink | 
| sink for writing all log messages to a stringstream  More... | |
Public Member Functions | |
| CaptureLogs (std::string *pResult) | |
| ~CaptureLogs () override | |
| std::unique_ptr< beast::Journal::Sink > | makeSink (std::string const &partition, beast::severities::Severity threshold) override | 
| bool | open (boost::filesystem::path const &pathToLogFile) | 
| beast::Journal::Sink & | get (std::string const &name) | 
| beast::Journal::Sink & | operator[] (std::string const &name) | 
| beast::Journal | journal (std::string const &name) | 
| beast::severities::Severity | threshold () const | 
| void | threshold (beast::severities::Severity thresh) | 
| std::vector< std::pair< std::string, std::string > > | partition_severities () const | 
| void | write (beast::severities::Severity level, std::string const &partition, std::string const &text, bool console) | 
| std::string | rotate () | 
| void | silent (bool bSilent) | 
| Set flag to write logs to stderr (false) or not (true).   | |
Static Public Member Functions | |
| static LogSeverity | fromSeverity (beast::severities::Severity level) | 
| static beast::severities::Severity | toSeverity (LogSeverity level) | 
| static std::string | toString (LogSeverity s) | 
| static LogSeverity | fromString (std::string const &s) | 
Private Types | |
| enum | { maximumMessageCharacters = 12 * 1024 } | 
Static Private Member Functions | |
| static void | format (std::string &output, std::string const &message, beast::severities::Severity severity, std::string const &partition) | 
Private Attributes | |
| std::mutex | strmMutex_ | 
| std::stringstream | strm_ | 
| std::string * | pResult_ | 
| std::mutex | mutex_ | 
| std::map< std::string, std::unique_ptr< beast::Journal::Sink >, boost::beast::iless > | sinks_ | 
| beast::severities::Severity | thresh_ | 
| File | file_ | 
| bool | silent_ = false | 
Log manager for CaptureSinks.
This class holds the stream instance that is written to by the sinks. Upon destruction, all contents of the stream are assigned to the string specified in the ctor
Definition at line 15 of file CaptureLogs.h.
      
  | 
  privateinherited | 
      
  | 
  explicit | 
Definition at line 58 of file CaptureLogs.h.
      
  | 
  override | 
Definition at line 63 of file CaptureLogs.h.
      
  | 
  overridevirtual | 
Reimplemented from ripple::Logs.
Definition at line 69 of file CaptureLogs.h.
      
  | 
  inherited | 
      
  | 
  inherited | 
      
  | 
  inherited | 
      
  | 
  inherited | 
      
  | 
  inherited | 
      
  | 
  inherited | 
      
  | 
  inherited | 
      
  | 
  inherited | 
      
  | 
  inherited | 
      
  | 
  inherited | 
      
  | 
  staticinherited | 
      
  | 
  staticinherited | 
      
  | 
  staticinherited | 
      
  | 
  staticinherited | 
      
  | 
  staticprivateinherited | 
      
  | 
  private | 
Definition at line 17 of file CaptureLogs.h.
      
  | 
  private | 
Definition at line 18 of file CaptureLogs.h.
      
  | 
  private | 
Definition at line 19 of file CaptureLogs.h.
      
  | 
  mutableprivateinherited | 
      
  | 
  privateinherited | 
      
  | 
  privateinherited |