|
xrpld
|
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::Severity threshold) override |
| bool | open (std::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::Severity | threshold () const |
| void | threshold (beast::Severity thresh) |
| std::vector< std::pair< std::string, std::string > > | partitionSeverities () const |
| void | write (beast::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 std::string | toString (beast::Severity s) |
| static std::optional< beast::Severity > | fromString (std::string const &s) |
Static Private Member Functions | |
| static void | format (std::string &output, std::string const &message, beast::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::Severity | thresh_ |
| File | file_ |
| bool | silent_ = false |
Static Private Attributes | |
| static constexpr auto | kMaximumMessageCharacters = 12 * 1024 |
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 19 of file CaptureLogs.h.
|
explicit |
Definition at line 55 of file CaptureLogs.h.
|
override |
Definition at line 59 of file CaptureLogs.h.
|
overridevirtual |
Reimplemented from xrpl::Logs.
Definition at line 65 of file CaptureLogs.h.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
staticinherited |
|
staticinherited |
|
staticprivateinherited |
|
private |
Definition at line 21 of file CaptureLogs.h.
|
private |
Definition at line 22 of file CaptureLogs.h.
|
private |
Definition at line 23 of file CaptureLogs.h.
|
mutableprivateinherited |
|
privateinherited |
|
privateinherited |