20 #include <ripple/app/main/Application.h>
21 #include <ripple/basics/Log.h>
22 #include <ripple/json/json_value.h>
23 #include <ripple/net/RPCErr.h>
24 #include <ripple/protocol/ErrorCodes.h>
25 #include <ripple/protocol/jss.h>
26 #include <ripple/rpc/Context.h>
27 #include <boost/algorithm/string/predicate.hpp>
46 for (
auto const& [k, v] : logTable)
49 ret[jss::levels] = lev;
74 if (boost::iequals(partition,
"base"))
std::vector< std::pair< std::string, std::string > > partition_severities() const
Json::Value rpcError(int iError)
static std::string toString(LogSeverity s)
static LogSeverity fromSeverity(beast::severities::Severity level)
Json::Value doLogLevel(RPC::JsonContext &)
@ objectValue
object value (collection of name/value pairs).
static LogSeverity fromString(std::string const &s)
bool isMember(const char *key) const
Return true if the object has a member named key.
beast::severities::Severity threshold() const
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
virtual Severity threshold() const
Returns the minimum severity level this sink will report.
static beast::severities::Severity toSeverity(LogSeverity level)
beast::Journal::Sink & get(std::string const &name)
std::string asString() const
Returns the unquoted string value.