18#ifndef _LOG4CXX_PROPERTY_CONFIGURATOR_H
19#define _LOG4CXX_PROPERTY_CONFIGURATOR_H
48class PropertyWatchdog;
267#if 15 < LOG4CXX_ABI_VERSION
289 spi::ConfigurationStatus doConfigure
290 ( const
File& configFileName
291#if LOG4CXX_ABI_VERSION <= 15
304#if LOG4CXX_ABI_VERSION <= 15
383 const LogString& value,
bool additivity);
394 static PropertyWatchdog* pdog;
An abstract representation of file and directory path names.
Definition: file.h:41
Allows the configuration of log4cxx from an external file.
Definition: propertyconfigurator.h:251
spi::ConfigurationStatus doConfigure(helpers::Properties &properties, spi::LoggerRepositoryPtr hierarchy)
Read configuration options from properties.
static spi::ConfigurationStatus configure(helpers::Properties &properties)
Read configuration options from properties.
void registryPut(const AppenderPtr &appender)
static spi::ConfigurationStatus configureAndWatch(const File &configFilename)
Like configureAndWatch(const File& configFilename, long delay) except that the default delay as defin...
void configureLoggerFactory(helpers::Properties &props)
Check the provided Properties object for a LoggerFactory entry specified by log4j....
std::map< LogString, AppenderPtr > * registry
Used internally to keep track of configured appenders.
Definition: propertyconfigurator.h:257
bool parseAdditivityForLogger(helpers::Properties &props, LoggerPtr &cat, const LogString &loggerName)
Parse the additivity option for a non-root logger.
static spi::ConfigurationStatus configureAndWatch(const File &configFilename, long delay=0)
Read configuration options from configFilename (if it exists).
AppenderPtr registryGet(const LogString &name)
void configureRootLogger(helpers::Properties &props, spi::LoggerRepositoryPtr &hierarchy)
AppenderPtr parseAppender(helpers::Properties &props, const LogString &appenderName)
void parseCatsAndRenderers(helpers::Properties &props, spi::LoggerRepositoryPtr &hierarchy)
Parse non-root elements, such non-root categories and renderers.
void parseLogger(helpers::Properties &props, LoggerPtr &logger, const LogString &optionKey, const LogString &loggerName, const LogString &value, bool additivity)
This method must work for the root logger as well.
static spi::ConfigurationStatus configure(const File &configFilename)
Read configuration options from file configFilename.
base class for java-like objects.
Definition: object.h:106
Definition: properties.h:33
Implemented by classes capable of configuring log4j using a URL.
Definition: configurator.h:39
#define LOG4CXX_EXPORT
Definition: log4cxx.h:101
#define LOG4CXX_DECLARE_PRIVATE_MEMBER(T, V)
Definition: log4cxx.h:86
#define LOG4CXX_NS
Definition: log4cxx.h:104
std::shared_ptr< LoggerRepository > LoggerRepositoryPtr
Definition: optionconverter.h:33
ConfigurationStatus
Definition: configurator.h:30
std::shared_ptr< LoggerFactory > LoggerFactoryPtr
Definition: logmanager.h:34
std::basic_string< logchar > LogString
Definition: logstring.h:60
std::shared_ptr< Appender > AppenderPtr
Definition: basicconfigurator.h:29
std::shared_ptr< Logger > LoggerPtr
Definition: defaultloggerfactory.h:27
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:158
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:152
#define DECLARE_LOG4CXX_OBJECT(object)
Definition: object.h:43
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition: object.h:164
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:146