18 #ifndef _LOG4CXX_LOG_MANAGER_H 19 #define _LOG4CXX_LOG_MANAGER_H 22 #pragma warning ( push ) 23 #pragma warning ( disable: 4231 4251 4275 4786 ) 33 typedef std::shared_ptr<Logger>
LoggerPtr;
53 static spi::RepositorySelectorPtr repositorySelector;
54 static spi::RepositorySelectorPtr getRepositorySelector();
73 static void setRepositorySelector(spi::RepositorySelectorPtr selector,
81 static LoggerPtr getRootLogger();
88 static LoggerPtr getLogger(
const std::string& name);
95 static LoggerPtr getLogger(
const std::string& name,
102 static LoggerPtr exists(
const std::string& name);
103 #if LOG4CXX_WCHAR_T_API 109 static LoggerPtr getLogger(
const std::wstring& name);
116 static LoggerPtr getLogger(
const std::wstring& name,
123 static LoggerPtr exists(
const std::wstring& name);
125 #if LOG4CXX_UNICHAR_API 131 static LoggerPtr getLogger(
const std::basic_string<UniChar>& name);
138 static LoggerPtr getLogger(
const std::basic_string<UniChar>& name,
145 static LoggerPtr exists(
const std::basic_string<UniChar>& name);
147 #if LOG4CXX_CFSTRING_API 153 static LoggerPtr getLogger(
const CFStringRef& name);
160 static LoggerPtr getLogger(
const CFStringRef& name,
176 static LoggerPtr getLoggerLS(
const LogString& name);
183 static LoggerPtr getLoggerLS(
const LogString& name,
191 static LoggerPtr existsLS(
const LogString& name);
193 static LoggerList getCurrentLoggers();
199 static void shutdown();
205 static void resetConfiguration();
209 #if defined(_MSC_VER) 210 #pragma warning ( pop ) 214 #endif //_LOG4CXX_LOG_MANAGER_H Use the LogManager class to retreive Logger instances or to operate on the current LoggerRepository...
Definition: logmanager.h:49
std::shared_ptr< LoggerFactory > LoggerFactoryPtr
Definition: logmanager.h:38
std::vector< LoggerPtr > LoggerList
Definition: logmanager.h:34
const struct __CFString * CFStringRef
Definition: logstring.h:36
Implement this interface to create new instances of Logger or a sub-class of Logger.
Definition: loggerfactory.h:32
std::shared_ptr< LoggerRepository > LoggerRepositoryPtr
Definition: defaultconfigurator.h:27
std::shared_ptr< Logger > LoggerPtr
Definition: defaultloggerfactory.h:26
Definition: appender.h:32
std::basic_string< logchar > LogString
Definition: logstring.h:66