rippled
Loading...
Searching...
No Matches
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
7namespace ripple {
8
11{
12 context.app.getPerfLog().rotate();
13 return RPC::makeObjectValue(context.app.logs().rotate());
14}
15
16} // namespace ripple
Represents a JSON value.
Definition json_value.h:131
virtual perf::PerfLog & getPerfLog()=0
virtual Logs & logs()=0
std::string rotate()
Definition Log.cpp:191
virtual void rotate()=0
Rotate perf log file.
Json::Value makeObjectValue(Value const &value, Json::StaticString const &field=jss::message)
Return a Json::objectValue with a single entry.
Definition Handler.h:47
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
Json::Value doLogRotate(RPC::JsonContext &)
Definition LogRotate.cpp:10
Application & app
Definition Context.h:22