|
mod_servlet
C++Servlets
|
Abstract interface for logging prefix printer. More...
#include <logger.h>
Public Member Functions | |
| virtual void | print_prefix (LEVEL level, const std::string &name, std::ostream &out) const =0 |
| Prints prefix to the log output. More... | |
| virtual void | load_config (std::map< std::string, std::string, std::less<>> &props, const std::string &conf_prefix)=0 |
| Loads configuration from the properties provided. More... | |
Abstract interface for logging prefix printer.
The instance of prefix_printer object is responsible for the prefix printed on each line in the logging outptu (e.g. timestamp, thread id, log level, logger name, etc.)
|
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 "time.format" and this method is called with conf_prefix of "simple." than the property with the name "simple.time.format" should be used to configure this object.
| props | Properties to use to configure this object, |
| conf_prefix | Prefix for the propertiy keys |
|
pure virtual |
Prints prefix to the log output.
| level | Logging level used by logger for which the prefix is printed. |
| name | name of logger for which is prefix printed. |
| out | std::ostream to print the prefix to. |