1#include <xrpld/app/main/Application.h>
2#include <xrpld/rpc/Context.h>
4#include <xrpl/basics/Log.h>
5#include <xrpl/json/json_value.h>
6#include <xrpl/protocol/ErrorCodes.h>
7#include <xrpl/protocol/RPCErr.h>
8#include <xrpl/protocol/jss.h>
10#include <boost/algorithm/string/predicate.hpp>
31 for (
auto const& [k, v] : logTable)
34 ret[jss::levels] = lev;
40 if (not severity.has_value())
57 if (boost::iequals(partition,
"base"))
virtual Severity threshold() const
Returns the minimum severity level this sink will report.
std::string asString() const
Returns the unquoted string value.
bool isMember(char const *key) const
Return true if the object has a member named key.
std::vector< std::pair< std::string, std::string > > partitionSeverities() const
static std::string toString(beast::Severity s)
beast::Journal::Sink & get(std::string const &name)
beast::Severity threshold() const
static std::optional< beast::Severity > fromString(std::string const &s)
virtual Logs & getLogs()=0
@ Object
object value (collection of name/value pairs).
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
json::Value doLogLevel(RPC::JsonContext &context)
json::Value rpcError(ErrorCodeI iError)