18#ifndef _LOG4CXX_LOG_MANAGER_H
19#define _LOG4CXX_LOG_MANAGER_H
34class RepositorySelector;
51 static spi::RepositorySelectorPtr getRepositorySelector();
90 const spi::LoggerFactoryPtr& factory = {});
97#if LOG4CXX_WCHAR_T_API
107 const spi::LoggerFactoryPtr& factory = {});
115#if LOG4CXX_CFSTRING_API
126 const spi::LoggerFactoryPtr& factory = {});
145 const spi::LoggerFactoryPtr& factory = {});
Use the LogManager class to retreive Logger instances or to operate on the current LoggerRepository.
Definition logmanager.h:48
static LoggerPtr getLoggerLS(const LogString &name, const spi::LoggerFactoryPtr &factory={})
Retrieve the name Logger instance from the LoggerRepository using factory to create it if required.
static LoggerPtr exists(const std::wstring &name)
A pointer to the Logger name instance if it exists in the LoggerRepository.
static LoggerPtr existsLS(const LogString &name)
A pointer to the Logger name instance if it exists in the LoggerRepository.
static void setRepositorySelector(const spi::RepositorySelectorPtr &selector, void *guard)
Use selector to source the LoggerRepository, but only if the correct guard is passed as parameter.
static spi::LoggerRepositoryPtr getLoggerRepository()
static bool removeLogger(const LogString &name, bool ifNotUsed=true)
Remove the name Logger from the LoggerRepository.
static LoggerPtr getLogger(const std::wstring &name, const spi::LoggerFactoryPtr &factory={})
Retrieve the name Logger instance from the LoggerRepository using factory to create it if required.
static LoggerPtr getRootLogger()
Retrieve the root logger from the LoggerRepository.
static LoggerPtr getLogger(const CFStringRef &name, const spi::LoggerFactoryPtr &factory={})
Retrieve the name Logger instance from the LoggerRepository using factory to create it if required.
static LoggerList getCurrentLoggers()
static LoggerPtr exists(const CFStringRef &name)
A pointer to the Logger name instance if it exists in the LoggerRepository.
static void resetConfiguration()
Reset all values contained in this current LoggerRepository to their default.
static LoggerPtr getLogger(const std::string &name, const spi::LoggerFactoryPtr &factory={})
Retrieve the name Logger instance from the LoggerRepository using factory to create it if required.
static void shutdown()
Safely close and remove all appenders in all loggers including the root logger.
static LoggerPtr exists(const std::string &name)
A pointer to the Logger name instance if it exists in the LoggerRepository.
A LoggerRepository is used to create and retrieve Loggers.
Definition loggerrepository.h:43
The LogManager uses one (and only one) RepositorySelector implementation to select the LoggerReposito...
Definition repositoryselector.h:43
const struct __CFString * CFStringRef
Definition logstring.h:30
std::shared_ptr< LoggerRepository > LoggerRepositoryPtr
Definition repositoryselector.h:28
LOG4CXX_PTR_DEF(LoggingEvent)
LOG4CXX_LIST_DEF(AppenderList, AppenderPtr)
std::basic_string< logchar > LogString
Definition logstring.h:51
LOG4CXX_PTR_DEF(Appender)
std::shared_ptr< Logger > LoggerPtr
Definition provisionnode.h:28