rippled
|
Public Member Functions | |
SuiteLogs (beast::unit_test::suite &suite) | |
~SuiteLogs () override=default | |
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). More... | |
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 | |
beast::unit_test::suite & | suite_ |
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 |
|
privateinherited |
|
explicit |
|
overridedefault |
|
overridevirtual |
Reimplemented from ripple::Logs.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticprivateinherited |
|
private |
|
mutableprivateinherited |
|
privateinherited |
|
privateinherited |