Vault
4.1
|
The abstract base class is what you implement to allow an appender class to be dynamically instantiated from settings, typically during a call to configure() at startup. More...
#include <vlogger.h>
Public Member Functions | |
virtual VLogAppenderPtr | instantiateLogAppender (const VSettingsNode &settings, const VSettingsNode &defaults) const =0 |
Instantiates the concreted appender class from the specified settings. | |
virtual void | addInfo (VBentoNode &infoNode) const =0 |
For diagnostic purposes, adds the properties/state of this factory to the supplied Bento node. |
The abstract base class is what you implement to allow an appender class to be dynamically instantiated from settings, typically during a call to configure() at startup.
virtual VLogAppenderPtr VLogAppenderFactory::instantiateLogAppender | ( | const VSettingsNode & | settings, |
const VSettingsNode & | defaults | ||
) | const [pure virtual] |
Instantiates the concreted appender class from the specified settings.
settings | settings to use to configure the appender |
defaults | optional default settings for the appender to use if not specified in settings |
Implemented in VStringVectorLogAppenderFactory, VStringLogAppenderFactory, VSilentLogAppenderFactory, VRollingFileLogAppenderFactory, VFileLogAppenderFactory, and VCoutLogAppenderFactory.
virtual void VLogAppenderFactory::addInfo | ( | VBentoNode & | infoNode | ) | const [pure virtual] |
For diagnostic purposes, adds the properties/state of this factory to the supplied Bento node.
Concrete classes should add their type-specific info, primarily the factory and appender class names.
infoNode | a Bento node to which to add properties describing this factory, specifically a string of name "type" whose value is the appender class name |
Implemented in VStringVectorLogAppenderFactory, VStringLogAppenderFactory, VSilentLogAppenderFactory, VRollingFileLogAppenderFactory, VFileLogAppenderFactory, and VCoutLogAppenderFactory.