mod_servlet
C++Servlets
 All Classes Files Functions Variables Typedefs Macros Pages
servlet::logging::log_output Class Referenceabstract

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...
 

Detailed Description

Abstract interface for logging output.

Member Function Documentation

virtual void servlet::logging::log_output::load_config ( std::map< std::string, std::string, std::less<>> &  props,
const std::string &  conf_prefix,
const std::string &  base_dir 
)
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.

Parameters
propsProperties to use to configure this object,
conf_prefixPrefix for the propertiy keys
base_dirBase directory to use to resolve relative file paths.
virtual void servlet::logging::log_output::write_string ( string_view  str)
pure virtual

Writes a given string_view to the output represented by this object.

Parameters
strstring_view to write

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