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,
84 AppenderMap& appenders);
91 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
92 apr_xml_elem* appenderRef,
94 AppenderMap& appenders);
101 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
102 apr_xml_elem* appenderElement,
104 AppenderMap& appenders);
109 void parseErrorHandler(
111 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
112 apr_xml_elem* element,
115 AppenderMap& appenders);
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,
134 AppenderMap& appenders);
139 void parseLoggerFactory(
141 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
142 apr_xml_elem* factoryElement);
149 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
150 apr_xml_elem* factoryElement);
155 log4cxx::rolling::RollingPolicyPtr parseRollingPolicy(
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);
170 void parseChildrenOfLoggerElement(
172 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
173 apr_xml_elem* catElement,
176 AppenderMap& appenders );
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,
210 AppenderMap& appenders);
225 static
void configure(const std::
string& filename);
226 #if LOG4CXX_WCHAR_T_API 227 static void configure(
const std::wstring& filename);
229 #if LOG4CXX_UNICHAR_API 230 static void configure(
const std::basic_string<UniChar>& filename);
232 #if LOG4CXX_CFSTRING_API 233 static void configure(
const CFStringRef& filename);
241 static void configureAndWatch(
const std::string& configFilename);
242 #if LOG4CXX_WCHAR_T_API 243 static void configureAndWatch(
const std::wstring& configFilename);
245 #if LOG4CXX_UNICHAR_API 246 static void configureAndWatch(
const std::basic_string<UniChar>& configFilename);
248 #if LOG4CXX_CFSTRING_API 249 static void configureAndWatch(
const CFStringRef& configFilename);
262 static void configureAndWatch(
const std::string& configFilename,
264 #if LOG4CXX_WCHAR_T_API 265 static void configureAndWatch(
const std::wstring& configFilename,
268 #if LOG4CXX_UNICHAR_API 269 static void configureAndWatch(
const std::basic_string<UniChar>& configFilename,
272 #if LOG4CXX_CFSTRING_API 273 static void configureAndWatch(
const CFStringRef& configFilename,
284 void doConfigure(
const File& filename,
289 log4cxx::helpers::CharsetDecoderPtr& utf8Decoder,
291 const std::string& attrName);
304 static XMLWatchdog* xdog;
310 #if defined(_MSC_VER) 311 #pragma warning (pop) 314 #endif // _LOG4CXX_XML_DOM_CONFIGURATOR_H
std::map< LogString, AppenderPtr > AppenderMap
Definition: domconfigurator.h:74
General purpose Object property setter.
Definition: propertysetter.h:53
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:148
std::shared_ptr< LoggerFactory > LoggerFactoryPtr
Definition: logmanager.h:38
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:142
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:136
const struct __CFString * CFStringRef
Definition: logstring.h:36
spi::LoggerFactoryPtr loggerFactory
Definition: domconfigurator.h:298
spi::LoggerRepositoryPtr repository
Definition: domconfigurator.h:297
Use this class to initialize the log4cxx environment using a DOM tree.
Definition: domconfigurator.h:69
#define DECLARE_LOG4CXX_OBJECT(object)
Definition: object.h:39
base class for java-like objects.
Definition: object.h:101
std::shared_ptr< LoggerRepository > LoggerRepositoryPtr
Definition: defaultconfigurator.h:27
std::shared_ptr< Layout > LayoutPtr
Definition: appender.h:47
std::shared_ptr< Object > ObjectPtr
Definition: propertysetter.h:28
std::shared_ptr< Appender > AppenderPtr
Definition: basicconfigurator.h:28
Definition: properties.h:38
LOG4CXX_PTR_DEF(DOMConfigurator)
Implemented by classes capable of configuring log4j using a URL.
Definition: configurator.h:32
std::shared_ptr< Logger > LoggerPtr
Definition: defaultloggerfactory.h:26
An abstract representation of file and directory path names.
Definition: file.h:45
helpers::Properties props
Definition: domconfigurator.h:296
Definition: appender.h:32
std::basic_string< logchar > LogString
Definition: logstring.h:66