18 #ifndef _LOG4CXX_PROPERTY_CONFIGURATOR_H 19 #define _LOG4CXX_PROPERTY_CONFIGURATOR_H 22 #pragma warning (push) 23 #pragma warning ( disable: 4231 4251 4275 4786 ) 37 typedef std::shared_ptr<Logger>
LoggerPtr;
53 class PropertyWatchdog;
115 virtual ~PropertyConfigurator();
292 void doConfigure(const
File& configFileName,
298 static
void configure(const
File& configFilename);
307 static
void configureAndWatch(const
File& configFilename);
320 static
void configureAndWatch(const
File& configFilename,
328 static
void configure(helpers::Properties& properties);
335 void doConfigure(helpers::Properties& properties,
351 void configureLoggerFactory(helpers::Properties& props);
353 void configureRootLogger(helpers::Properties& props,
359 void parseCatsAndRenderers(helpers::Properties& props,
365 bool parseAdditivityForLogger(helpers::Properties& props,
366 LoggerPtr& cat, const
LogString& loggerName);
372 helpers::Properties& props, LoggerPtr& logger,
374 const
LogString& value,
bool additivity);
376 AppenderPtr parseAppender(
377 helpers::Properties& props, const
LogString& appenderName);
379 void registryPut(const AppenderPtr& appender);
380 AppenderPtr registryGet(const
LogString& name);
383 PropertyConfigurator(const PropertyConfigurator&);
384 PropertyConfigurator& operator=(const PropertyConfigurator&);
385 static PropertyWatchdog* pdog;
389 #if defined(_MSC_VER) 390 #pragma warning (pop) 394 #endif //_LOG4CXX_PROPERTY_CONFIGURATOR_H
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:148
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:142
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:136
std::shared_ptr< spi::LoggerFactory > loggerFactory
Used to create new instances of logger.
Definition: propertyconfigurator.h:106
Allows the configuration of log4cxx from an external file.
Definition: propertyconfigurator.h:92
#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< Appender > AppenderPtr
Definition: basicconfigurator.h:28
std::map< LogString, AppenderPtr > * registry
Used internally to keep track of configured appenders.
Definition: propertyconfigurator.h:101
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
Definition: appender.h:32
std::basic_string< logchar > LogString
Definition: logstring.h:66