| 
    rippled
    
   | 
 
Manages partitions for logging. More...
#include <Log.h>


Classes | |
| class | File | 
| Manages a system file containing logged output.  More... | |
| class | Sink | 
Public Member Functions | |
| Logs (beast::severities::Severity level) | |
| Logs (Logs const &)=delete | |
| Logs & | operator= (Logs const &)=delete | 
| virtual | ~Logs ()=default | 
| 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).   | |
| virtual std::unique_ptr< beast::Journal::Sink > | makeSink (std::string const &partition, beast::severities::Severity startingLevel) | 
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 | mutex_ | 
| std::map< std::string, std::unique_ptr< beast::Journal::Sink >, boost::beast::iless > | sinks_ | 
| beast::severities::Severity | thresh_ | 
| File | file_ | 
| bool | silent_ = false | 
| ripple::Logs::Logs | ( | beast::severities::Severity | level | ) | 
      
  | 
  delete | 
      
  | 
  virtualdefault | 
| bool ripple::Logs::open | ( | boost::filesystem::path const & | pathToLogFile | ) | 
| beast::Journal::Sink & ripple::Logs::get | ( | std::string const & | name | ) | 
| beast::Journal::Sink & ripple::Logs::operator[] | ( | std::string const & | name | ) | 
| beast::Journal ripple::Logs::journal | ( | std::string const & | name | ) | 
| beast::severities::Severity ripple::Logs::threshold | ( | ) | const | 
| void ripple::Logs::threshold | ( | beast::severities::Severity | thresh | ) | 
| std::vector< std::pair< std::string, std::string > > ripple::Logs::partition_severities | ( | ) | const | 
| void ripple::Logs::write | ( | beast::severities::Severity | level, | 
| std::string const & | partition, | ||
| std::string const & | text, | ||
| bool | console | ||
| ) | 
| std::string ripple::Logs::rotate | ( | ) | 
| void ripple::Logs::silent | ( | bool | bSilent | ) | 
      
  | 
  virtual | 
Reimplemented in ripple::test::CaptureLogs, ripple::test::CheckMessageLogs, and ripple::test::jtx::SuiteLogs.
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  staticprivate | 
      
  | 
  mutableprivate | 
      
  | 
  private | 
      
  | 
  private |