18#ifndef _LOG4CXX_HELPER_OPTION_CONVERTER_H
19#define _LOG4CXX_HELPER_OPTION_CONVERTER_H
38class LOG4CXX_EXPORT OptionConverter
145 ,
const Class& superClass
146 ,
const ObjectPtr& defaultValue
161 ,
const Class& superClass
162 ,
const ObjectPtr& defaultValue
179 (
const File& configFileName
182 ,
int millisecondDelay = 0
Holds the path to a file or directory.
Definition file.h:40
static LogString getSystemProperty(const LogString &key, const LogString &def)
static LogString convertSpecialChars(const LogString &s)
static LevelPtr toLevel(const LogString &value, const LevelPtr &defaultValue)
The Level indicated by value if recognised otherwise defaultValue.
static bool toBoolean(const LogString &value, bool defaultValue)
The boolean equivalent of value if it is not empty, otherwise defaultValue.
static size_t toFileSize(const LogString &value, size_t defaultValue)
The numeric equivalent of value if it is an integer in the range 0 - 2^63, otherwise defaultValue.
static ObjectPtr instantiateByKey(const Properties &props, const LogString &key, const Class &superClass, const ObjectPtr &defaultValue)
Instantiate an object using the value in props associated with key as a registered class name.
static LogString findAndSubst(const LogString &key, const Properties &props)
Find the value corresponding to key in props.
static spi::ConfigurationStatus selectAndConfigure(const File &configFileName, const LogString &className={}, const spi::LoggerRepositoryPtr &target={}, int millisecondDelay=0)
Use the information in configFileName to configure Log4cxx.
static ObjectPtr instantiateByClassName(const LogString &className, const Class &superClass, const ObjectPtr &defaultValue)
Instantiate an object given a class name.
static int toInt(const LogString &value, int defaultValue)
The numeric equivalent of value if it is not empty, otherwise defaultValue.
static LogString substVars(const LogString &val, const Properties &props)
Perform variable substitution in string val from the values of keys found in the system propeties.
Definition properties.h:33
Definition propertysetter.h:27
std::shared_ptr< LoggerRepository > LoggerRepositoryPtr
Definition repositoryselector.h:28
ConfigurationStatus
Definition configurator.h:31
std::basic_string< logchar > LogString
Definition logstring.h:51
std::shared_ptr< Level > LevelPtr
Definition optionconverter.h:28