rippled
Loading...
Searching...
No Matches
xrpld
rpc
handlers
LogRotate.cpp
1
#include <xrpld/app/main/Application.h>
2
#include <xrpld/perflog/PerfLog.h>
3
#include <xrpld/rpc/detail/Handler.h>
4
5
#include <xrpl/basics/Log.h>
6
7
namespace
ripple
{
8
9
Json::Value
10
doLogRotate
(
RPC::JsonContext
& context)
11
{
12
context.
app
.
getPerfLog
().
rotate
();
13
return
RPC::makeObjectValue
(context.
app
.
logs
().
rotate
());
14
}
15
16
}
// namespace ripple
Json::Value
Represents a JSON value.
Definition
json_value.h:131
ripple::Application::getPerfLog
virtual perf::PerfLog & getPerfLog()=0
ripple::Application::logs
virtual Logs & logs()=0
ripple::Logs::rotate
std::string rotate()
Definition
Log.cpp:191
ripple::perf::PerfLog::rotate
virtual void rotate()=0
Rotate perf log file.
ripple::RPC::makeObjectValue
Json::Value makeObjectValue(Value const &value, Json::StaticString const &field=jss::message)
Return a Json::objectValue with a single entry.
Definition
Handler.h:47
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:6
ripple::doLogRotate
Json::Value doLogRotate(RPC::JsonContext &)
Definition
LogRotate.cpp:10
ripple::RPC::Context::app
Application & app
Definition
Context.h:22
ripple::RPC::JsonContext
Definition
Context.h:34
Generated by
1.9.8