pion  5.0.6
Public Member Functions | List of all members
pion::plugins::LogService Class Reference

#include <LogService.hpp>

Inherits pion::http::plugin_service.

Public Member Functions

virtual void operator() (const pion::http::request_ptr &http_request_ptr, const pion::tcp::connection_ptr &tcp_conn)
 handles a new HTTP request More...
 
LogServiceAppendergetLogAppender (void)
 returns the log appender used by LogService
 
- Public Member Functions inherited from pion::http::plugin_service
 plugin_service (void)
 default constructor
 
virtual ~plugin_service ()
 virtual destructor
 
virtual void set_option (const std::string &name, const std::string &value)
 
virtual void start (void)
 called when the web service's server is starting
 
virtual void stop (void)
 called when the web service's server is stopping
 
void set_resource (const std::string &str)
 sets the URI stem or resource that is bound to the web service
 
const std::string & get_resource (void) const
 returns the URI stem or resource that is bound to the web service
 
std::string get_relative_resource (const std::string &resource_requested) const
 returns the path to the resource requested, relative to the web service's location
 

Detailed Description

LogService: web service that displays log messages

Definition at line 121 of file LogService.hpp.

Member Function Documentation

◆ operator()()

void pion::plugins::LogService::operator() ( const pion::http::request_ptr &  http_request_ptr,
const pion::tcp::connection_ptr &  tcp_conn 
)
virtual

handles a new HTTP request

handles requests for LogService

Implements pion::http::plugin_service.

Definition at line 154 of file LogService.cpp.

References pion::http::response_writer::create(), and pion::tcp::connection::finish().


The documentation for this class was generated from the following files: