18#ifndef _LOG4CXX_HELPER_OPTION_CONVERTER_H
19#define _LOG4CXX_HELPER_OPTION_CONVERTER_H
32class LoggerRepository;
An abstract representation of file and directory path names.
Definition: file.h:41
A convenience class to convert property values to specific types.
Definition: optionconverter.h:47
static LogString getSystemProperty(const LogString &key, const LogString &def)
static long toFileSize(const LogString &value, long defaultValue)
The numeric equivalent of value if it is not empty, otherwise defaultValue.
static LogString convertSpecialChars(const LogString &s)
static ObjectPtr instantiateByKey(Properties &props, const LogString &key, const Class &superClass, const ObjectPtr &defaultValue)
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 LogString findAndSubst(const LogString &key, Properties &props)
Find the value corresponding to key in props.
static LogString substVars(const LogString &val, Properties &props)
Perform variable substitution in string val from the values of keys found in the system propeties.
static void selectAndConfigure(const File &configFileName, const LogString &clazz, spi::LoggerRepositoryPtr hierarchy, int delay=0)
Configure log4cxx given a configFileName.
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.
Definition: properties.h:33
std::shared_ptr< Object > ObjectPtr
Definition: optionconverter.h:41
std::shared_ptr< LoggerRepository > LoggerRepositoryPtr
Definition: optionconverter.h:33
std::basic_string< logchar > LogString
Definition: logstring.h:60
std::shared_ptr< Level > LevelPtr
Definition: optionconverter.h:28