18#ifndef _LOG4CXX_XML_DOM_CONFIGURATOR_H
19#define _LOG4CXX_XML_DOM_CONFIGURATOR_H
75 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
86 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
87 apr_xml_elem* appenderRef,
96 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
97 apr_xml_elem* appenderElement,
106 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
107 apr_xml_elem* element,
117 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
118 apr_xml_elem* element,
119 std::vector<log4cxx::spi::FilterPtr>& filters);
126 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
127 apr_xml_elem* loggerElement,
136 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
137 apr_xml_elem* factoryElement);
144 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
145 apr_xml_elem* factoryElement);
152 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
153 apr_xml_elem* factoryElement);
159 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
160 apr_xml_elem* rootElement, apr_xml_doc* doc,
AppenderMap& appenders);
167 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
168 apr_xml_elem* catElement,
178 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
179 apr_xml_elem* layout_element);
186 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
187 apr_xml_elem* element,
192 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
202 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
203 apr_xml_elem* element,
220 static spi::ConfigurationStatus configure(const std::
string& filename);
221#if LOG4CXX_WCHAR_T_API
224#if LOG4CXX_UNICHAR_API
227#if LOG4CXX_CFSTRING_API
237#if LOG4CXX_WCHAR_T_API
240#if LOG4CXX_UNICHAR_API
243#if LOG4CXX_CFSTRING_API
259#if LOG4CXX_WCHAR_T_API
263#if LOG4CXX_UNICHAR_API
267#if LOG4CXX_CFSTRING_API
284 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
286 const std::string& attrName);
294 static XMLWatchdog* xdog;
296 LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(DOMConfiguratorPrivate, m_priv)
An abstract representation of file and directory path names.
Definition: file.h:41
General purpose Object property setter.
Definition: propertysetter.h:56
Implemented by classes capable of configuring log4j using a URL.
Definition: configurator.h:39
Use this class to initialize the log4cxx environment using a DOM tree.
Definition: domconfigurator.h:64
spi::ConfigurationStatus doConfigure(const File &filename, spi::LoggerRepositoryPtr repository) override
Interpret the XML file pointed by filename and set up log4cxx accordingly.
void parseErrorHandler(log4cxx::helpers::Pool &p, log4cxx::helpers::CharsetDecoderPtr &utf8Decoder, apr_xml_elem *element, AppenderPtr &appender, apr_xml_doc *doc, AppenderMap &appenders)
Used internally to parse an ErrorHandler element.
void parseLevel(log4cxx::helpers::Pool &p, log4cxx::helpers::CharsetDecoderPtr &utf8Decoder, apr_xml_elem *element, LoggerPtr logger, bool isRoot)
Used internally to parse a level element.
static spi::ConfigurationStatus configure(const std::basic_string< UniChar > &filename)
static spi::ConfigurationStatus configure(const std::wstring &filename)
void parseLoggerFactory(log4cxx::helpers::Pool &p, log4cxx::helpers::CharsetDecoderPtr &utf8Decoder, apr_xml_elem *factoryElement)
Used internally to parse the logger factory element.
AppenderPtr parseAppender(log4cxx::helpers::Pool &p, log4cxx::helpers::CharsetDecoderPtr &utf8Decoder, apr_xml_elem *appenderElement, apr_xml_doc *doc, AppenderMap &appenders)
Used internally to parse an appender element.
void parseRoot(log4cxx::helpers::Pool &p, log4cxx::helpers::CharsetDecoderPtr &utf8Decoder, apr_xml_elem *rootElement, apr_xml_doc *doc, AppenderMap &appenders)
Used internally to parse the root logger element.
static spi::ConfigurationStatus configure(const CFStringRef &filename)
log4cxx::helpers::ObjectPtr parseTriggeringPolicy(log4cxx::helpers::Pool &p, log4cxx::helpers::CharsetDecoderPtr &utf8Decoder, apr_xml_elem *factoryElement)
Used internally to parse the logger factory element.
AppenderPtr findAppenderByReference(log4cxx::helpers::Pool &p, log4cxx::helpers::CharsetDecoderPtr &utf8Decoder, apr_xml_elem *appenderRef, apr_xml_doc *doc, AppenderMap &appenders)
Used internally to parse appenders by IDREF element.
static spi::ConfigurationStatus configureAndWatch(const CFStringRef &configFilename, long delay)
static spi::ConfigurationStatus configureAndWatch(const CFStringRef &configFilename)
static spi::ConfigurationStatus configureAndWatch(const std::basic_string< UniChar > &configFilename)
std::map< LogString, AppenderPtr > AppenderMap
Definition: domconfigurator.h:69
LayoutPtr parseLayout(log4cxx::helpers::Pool &p, log4cxx::helpers::CharsetDecoderPtr &utf8Decoder, apr_xml_elem *layout_element)
Used internally to parse a layout element.
void setParameter(log4cxx::helpers::Pool &p, log4cxx::helpers::CharsetDecoderPtr &utf8Decoder, apr_xml_elem *elem, log4cxx::config::PropertySetter &propSetter)
void parseFilters(log4cxx::helpers::Pool &p, log4cxx::helpers::CharsetDecoderPtr &utf8Decoder, apr_xml_elem *element, std::vector< log4cxx::spi::FilterPtr > &filters)
Used internally to parse a filter element.
static spi::ConfigurationStatus configureAndWatch(const std::string &configFilename)
Like configureAndWatch(const std::string& configFilename, long delay) except that the default delay a...
static spi::ConfigurationStatus configureAndWatch(const std::string &configFilename, long delay)
Read the configuration file configFilename if it exists.
void parseChildrenOfLoggerElement(log4cxx::helpers::Pool &p, log4cxx::helpers::CharsetDecoderPtr &utf8Decoder, apr_xml_elem *catElement, LoggerPtr logger, bool isRoot, apr_xml_doc *doc, AppenderMap &appenders)
Used internally to parse the children of a logger element.
LogString subst(const LogString &value)
AppenderPtr findAppenderByName(log4cxx::helpers::Pool &p, log4cxx::helpers::CharsetDecoderPtr &utf8Decoder, apr_xml_elem *elem, apr_xml_doc *doc, const LogString &appenderName, AppenderMap &appenders)
Used internally to parse appenders by IDREF name.
void parseLogger(log4cxx::helpers::Pool &p, log4cxx::helpers::CharsetDecoderPtr &utf8Decoder, apr_xml_elem *loggerElement, apr_xml_doc *doc, AppenderMap &appenders)
Used internally to parse a logger element.
log4cxx::rolling::RollingPolicyPtr parseRollingPolicy(log4cxx::helpers::Pool &p, log4cxx::helpers::CharsetDecoderPtr &utf8Decoder, apr_xml_elem *factoryElement)
Used internally to parse the logger factory element.
static LogString getAttribute(log4cxx::helpers::CharsetDecoderPtr &utf8Decoder, apr_xml_elem *, const std::string &attrName)
static spi::ConfigurationStatus configureAndWatch(const std::wstring &configFilename, long delay)
static spi::ConfigurationStatus configureAndWatch(const std::basic_string< UniChar > &configFilename, long delay)
void parse(log4cxx::helpers::Pool &p, log4cxx::helpers::CharsetDecoderPtr &utf8Decoder, apr_xml_elem *element, apr_xml_doc *doc, AppenderMap &appenders)
Used internally to configure the log4cxx framework from an in-memory representation of an XML documen...
static spi::ConfigurationStatus configureAndWatch(const std::wstring &configFilename)
const struct __CFString * CFStringRef
Definition: logstring.h:30
std::shared_ptr< Object > ObjectPtr
Definition: optionconverter.h:41
std::shared_ptr< LoggerRepository > LoggerRepositoryPtr
Definition: optionconverter.h:33
ConfigurationStatus
Definition: configurator.h:30
LOG4CXX_PTR_DEF(DOMConfigurator)
Definition: configuration.h:25
std::basic_string< logchar > LogString
Definition: logstring.h:60
std::shared_ptr< Layout > LayoutPtr
Definition: appender.h:42
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:157
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:151
#define DECLARE_LOG4CXX_OBJECT(object)
Definition: object.h:42
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:145