18#ifndef _LOG4CXX_LOG_MANAGER_H
19#define _LOG4CXX_LOG_MANAGER_H
22 #pragma warning ( push )
23 #pragma warning ( disable: 4231 4251 4275 4786 )
53 static spi::RepositorySelectorPtr repositorySelector;
54 static spi::RepositorySelectorPtr getRepositorySelector();
103#if LOG4CXX_WCHAR_T_API
125#if LOG4CXX_UNICHAR_API
147#if LOG4CXX_CFSTRING_API
210 #pragma warning ( pop )
Use the LogManager class to retreive Logger instances or to operate on the current LoggerRepository.
Definition: logmanager.h:50
static LoggerPtr getLogger(const std::wstring &name)
Retrieve the appropriate Logger instance.
static LoggerPtr exists(const std::wstring &name)
Determines if logger name exists in the hierarchy.
static LoggerPtr getLogger(const CFStringRef &name)
Retrieve the appropriate Logger instance.
static LoggerPtr existsLS(const LogString &name)
Determines if logger name exists in the hierarchy.
static LoggerPtr getLogger(const std::string &name, const spi::LoggerFactoryPtr &factory)
Retrieve the appropriate Logger instance.
static void setRepositorySelector(spi::RepositorySelectorPtr selector, void *guard)
Sets LoggerFactory but only if the correct guard is passed as parameter.
static spi::LoggerRepositoryPtr getLoggerRepository()
static LoggerPtr getLogger(const CFStringRef &name, const spi::LoggerFactoryPtr &factory)
Retrieve the appropriate Logger instance.
static LoggerPtr getRootLogger()
Retrieve the appropriate root logger.
static LoggerPtr getLogger(const std::basic_string< UniChar > &name, const spi::LoggerFactoryPtr &factory)
Retrieve the appropriate Logger instance.
static LoggerPtr exists(const std::basic_string< UniChar > &name)
Determines if logger name exists in the hierarchy.
static LoggerPtr getLogger(const std::wstring &name, const spi::LoggerFactoryPtr &factory)
Retrieve the appropriate Logger instance.
static LoggerList getCurrentLoggers()
static LoggerPtr exists(const CFStringRef &name)
Determines if logger name exists in the hierarchy.
static LoggerPtr getLoggerLS(const LogString &name, const spi::LoggerFactoryPtr &factory)
Retrieve the appropriate Logger instance.
static void resetConfiguration()
Reset all values contained in this current LoggerRepository to their default.
static LoggerPtr getLogger(const std::string &name)
Retrieve the appropriate Logger instance.
static void shutdown()
Safely close and remove all appenders in all loggers including the root logger.
static LoggerPtr getLoggerLS(const LogString &name)
Retrieve the appropriate Logger instance.
static LoggerPtr getLogger(const std::basic_string< UniChar > &name)
Retrieve the appropriate Logger instance.
static LoggerPtr exists(const std::string &name)
Determines if logger name exists in the hierarchy.
const struct __CFString * CFStringRef
Definition: logstring.h:36
std::shared_ptr< LoggerFactory > LoggerFactoryPtr
Definition: logmanager.h:39
std::shared_ptr< LoggerRepository > LoggerRepositoryPtr
Definition: defaultconfigurator.h:28
Definition: messagehandler.h:23
std::basic_string< logchar > LogString
Definition: logstring.h:66
std::shared_ptr< Logger > LoggerPtr
Definition: defaultloggerfactory.h:27
std::vector< LoggerPtr > LoggerList
Definition: logmanager.h:34