xrpld
Loading...
Searching...
No Matches
xrpl::RclConsensusLogger Class Reference

Collects logging information. More...

#include <RCLConsensus.h>

Collaboration diagram for xrpl::RclConsensusLogger:

Public Member Functions

 RclConsensusLogger (char const *label, bool validating, beast::Journal j)
 ~RclConsensusLogger ()
std::unique_ptr< std::stringstream > const & ss ()

Private Attributes

std::string header_
beast::Journal j_
std::unique_ptr< std::stringstream > ss_
std::chrono::steady_clock::time_point start_

Detailed Description

Collects logging information.

Eases correlating multiple data points together to help follow flow of a complex activity, such as consensus heartbeat timer. If we are a validator, then always write output to debug log on destruction. Otherwise, INFO level.

Definition at line 578 of file RCLConsensus.h.

Constructor & Destructor Documentation

◆ RclConsensusLogger()

xrpl::RclConsensusLogger::RclConsensusLogger ( char const * label,
bool validating,
beast::Journal j )
explicit

Definition at line 1067 of file RCLConsensus.cpp.

◆ ~RclConsensusLogger()

xrpl::RclConsensusLogger::~RclConsensusLogger ( )

Definition at line 1079 of file RCLConsensus.cpp.

Member Function Documentation

◆ ss()

std::unique_ptr< std::stringstream > const & xrpl::RclConsensusLogger::ss ( )

Definition at line 590 of file RCLConsensus.h.

Member Data Documentation

◆ header_

std::string xrpl::RclConsensusLogger::header_
private

Definition at line 580 of file RCLConsensus.h.

◆ j_

beast::Journal xrpl::RclConsensusLogger::j_
private

Definition at line 581 of file RCLConsensus.h.

◆ ss_

std::unique_ptr<std::stringstream> xrpl::RclConsensusLogger::ss_
private

Definition at line 582 of file RCLConsensus.h.

◆ start_

std::chrono::steady_clock::time_point xrpl::RclConsensusLogger::start_
private

Definition at line 583 of file RCLConsensus.h.