mod_servlet
C++Servlets
|
Abstract interface for logging output. More...
#include <logger.h>
Public Member Functions | |
virtual void | write_string (string_view str)=0 |
Writes a given string_view to the output represented by this object. More... | |
virtual void | flush ()=0 |
Flushes the output represented by this object. | |
virtual void | load_config (std::map< std::string, std::string, std::less<>> &props, const std::string &conf_prefix, const std::string &base_dir)=0 |
Loads configuration from the properties provided. More... | |
Abstract interface for logging output.
|
pure virtual |
Loads configuration from the properties provided.
Only the properties with a given conf_prefix
prefix are related to this object.
For example, if this object required property with name "log.file"
and this method is called with conf_prefix
of "basic."
than the property with the name "basic.log.file"
should be used to configure this object.
Argument base_dir
might be passed to indicate the base directory path to resolve relative paths which can be read from properties.
props | Properties to use to configure this object, |
conf_prefix | Prefix for the propertiy keys |
base_dir | Base directory to use to resolve relative file paths. |
|
pure virtual |
Writes a given string_view
to the output represented by this object.
str | string_view to write |