13 #ifndef __PROCESS_LOGGING_HPP__ 14 #define __PROCESS_LOGGING_HPP__ 16 #include <glog/logging.h> 31 authenticationRealm(_authenticationRealm)
37 CHECK(
sizeof(FLAGS_v) ==
sizeof(int32_t));
47 route(
"/toggle", authenticationRealm, TOGGLE_HELP(), &This::toggle);
58 VLOG(FLAGS_v) <<
"Setting verbose logging level to " << v;
77 static const std::string TOGGLE_HELP();
81 const int32_t original;
90 #endif // __PROCESS_LOGGING_HPP__
Future< Response > request(const Request &request, bool streamedResponse=false)
Asynchronously sends an HTTP request to the process and returns the HTTP response once the entire res...
Logging(Option< std::string > _authenticationRealm)
Definition: logging.hpp:28
Definition: process.hpp:72
void route(const std::string &name, const Option< std::string > &help, const HttpRequestHandler &handler, const RouteOptions &options=RouteOptions())
Sets up a handler for HTTP requests with the specified name.
~Logging() override
Definition: logging.hpp:40
Definition: duration.hpp:32
Definition: logging.hpp:25
Definition: duration.hpp:207
Future< Nothing > set_level(int level, const Duration &duration)
Definition: timeout.hpp:24
Definition: executor.hpp:48
void initialize() override
Invoked when a process gets spawned.
Definition: logging.hpp:45
Definition: process.hpp:505
Duration remaining() const
Definition: timeout.hpp:93