18#ifndef _LOG4CXX_XML_DOM_CONFIGURATOR_H
19#define _LOG4CXX_XML_DOM_CONFIGURATOR_H
22 #pragma warning (push)
23 #pragma warning ( disable: 4231 4251 4275 4786 )
80 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
91 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
92 apr_xml_elem* appenderRef,
101 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
102 apr_xml_elem* appenderElement,
111 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
112 apr_xml_elem* element,
122 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
123 apr_xml_elem* element,
124 std::vector<log4cxx::spi::FilterPtr>& filters);
131 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
132 apr_xml_elem* loggerElement,
141 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
142 apr_xml_elem* factoryElement);
149 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
150 apr_xml_elem* factoryElement);
157 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
158 apr_xml_elem* factoryElement);
164 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
165 apr_xml_elem* rootElement, apr_xml_doc* doc,
AppenderMap& appenders);
172 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
173 apr_xml_elem* catElement,
183 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
184 apr_xml_elem* layout_element);
191 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
192 apr_xml_elem* element,
197 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
207 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
208 apr_xml_elem* element,
225 static
void configure(const std::
string& filename);
226#if LOG4CXX_WCHAR_T_API
229#if LOG4CXX_UNICHAR_API
230 static void configure(
const std::basic_string<UniChar>& filename);
232#if LOG4CXX_CFSTRING_API
242#if LOG4CXX_WCHAR_T_API
245#if LOG4CXX_UNICHAR_API
248#if LOG4CXX_CFSTRING_API
264#if LOG4CXX_WCHAR_T_API
268#if LOG4CXX_UNICHAR_API
272#if LOG4CXX_CFSTRING_API
289 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
291 const std::string& attrName);
304 static XMLWatchdog* xdog;
311 #pragma warning (pop)
An abstract representation of file and directory path names.
Definition: file.h:46
General purpose Object property setter.
Definition: propertysetter.h:54
base class for java-like objects.
Definition: object.h:102
Definition: properties.h:39
Implemented by classes capable of configuring log4j using a URL.
Definition: configurator.h:33
Use this class to initialize the log4cxx environment using a DOM tree.
Definition: domconfigurator.h:72
static void configureAndWatch(const CFStringRef &configFilename, long delay)
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.
helpers::Properties props
Definition: domconfigurator.h:296
static void 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.
static void configureAndWatch(const std::wstring &configFilename)
static void configureAndWatch(const std::string &configFilename, long delay)
Read the configuration file configFilename if it exists.
static void configureAndWatch(const std::string &configFilename)
Like configureAndWatch(const std::string& configFilename, long delay) except that the default delay a...
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.
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 void configureAndWatch(const std::wstring &configFilename, long delay)
std::map< LogString, AppenderPtr > AppenderMap
Definition: domconfigurator.h:74
void doConfigure(const File &filename, spi::LoggerRepositoryPtr repository)
Interpret the XML file pointed by filename and set up log4cxx accordingly.
LayoutPtr parseLayout(log4cxx::helpers::Pool &p, log4cxx::helpers::CharsetDecoderPtr &utf8Decoder, apr_xml_elem *layout_element)
Used internally to parse a layout element.
static void configureAndWatch(const CFStringRef &configFilename)
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.
spi::LoggerRepositoryPtr repository
Definition: domconfigurator.h:297
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)
static void configure(const CFStringRef &filename)
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.
static void configure(const std::basic_string< UniChar > &filename)
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.
static void configureAndWatch(const std::basic_string< UniChar > &configFilename)
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)
spi::LoggerFactoryPtr loggerFactory
Definition: domconfigurator.h:298
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 void configureAndWatch(const std::basic_string< UniChar > &configFilename, long delay)
const struct __CFString * CFStringRef
Definition: logstring.h:36
std::shared_ptr< Object > ObjectPtr
Definition: propertysetter.h:29
std::shared_ptr< LoggerFactory > LoggerFactoryPtr
Definition: logmanager.h:39
std::shared_ptr< LoggerRepository > LoggerRepositoryPtr
Definition: defaultconfigurator.h:28
LOG4CXX_PTR_DEF(DOMConfigurator)
Definition: messagehandler.h:23
std::basic_string< logchar > LogString
Definition: logstring.h:66
std::shared_ptr< Layout > LayoutPtr
Definition: appender.h:48
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:153
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:147
#define DECLARE_LOG4CXX_OBJECT(object)
Definition: object.h:39
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:141