Skip to content

Commit

Permalink
Improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-webb committed Jul 14, 2024
1 parent 9a2f978 commit 0e66618
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions src/main/include/log4cxx/logmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class LOG4CXX_EXPORT LogManager
/**
Retrieve the \c name Logger instance from the
{@link spi::LoggerRepository LoggerRepository}
using LoggerFactory to create it if required.
using the default factory to create it if required.
Calls {@link spi::LoggerRepository::ensureIsConfigured ensureIsConfigured} passing {@link DefaultConfigurator::configure} to ensure
the repository is configured.
Expand All @@ -98,14 +98,16 @@ class LOG4CXX_EXPORT LogManager
static LoggerPtr getLogger(const std::string& name,
const spi::LoggerFactoryPtr& factory);
/**
Does the logger \c name exist in the hierarchy?
A pointer to the logger \c name instance if it exists in the hierarchy.
@returns A null pointer unless the \c name Logger already exists.
*/
static LoggerPtr exists(const std::string& name);
#if LOG4CXX_WCHAR_T_API
/**
Retrieve the \c name Logger instance from the
{@link spi::LoggerRepository LoggerRepository}
using LoggerFactory to create it if required.
using the default factory to create it if required.
Calls {@link spi::LoggerRepository::ensureIsConfigured ensureIsConfigured} passing {@link DefaultConfigurator::configure} to ensure
the repository is configured.
Expand All @@ -122,15 +124,17 @@ class LOG4CXX_EXPORT LogManager
static LoggerPtr getLogger(const std::wstring& name,
const spi::LoggerFactoryPtr& factory);
/**
Does the logger \c name exist in the hierarchy?
A pointer to the logger \c name instance if it exists in the hierarchy.
@returns A null pointer unless the \c name Logger already exists.
*/
static LoggerPtr exists(const std::wstring& name);
#endif
#if LOG4CXX_UNICHAR_API
/**
Retrieve the \c name Logger instance from the
{@link spi::LoggerRepository LoggerRepository}
using LoggerFactory to create it if required.
using the default factory to create it if required.
Calls {@link spi::LoggerRepository::ensureIsConfigured ensureIsConfigured}
passing {@link DefaultConfigurator::configure} to ensure
Expand All @@ -149,15 +153,17 @@ class LOG4CXX_EXPORT LogManager
static LoggerPtr getLogger(const std::basic_string<UniChar>& name,
const spi::LoggerFactoryPtr& factory);
/**
Does the logger \c name exist in the hierarchy?
A pointer to the logger \c name instance if it exists in the hierarchy.
@returns A null pointer unless the \c name Logger already exists.
*/
static LoggerPtr exists(const std::basic_string<UniChar>& name);
#endif
#if LOG4CXX_CFSTRING_API
/**
Retrieve the \c name Logger instance from the
{@link spi::LoggerRepository LoggerRepository}
using LoggerFactory to create it if required.
using the default factory to create it if required.
Calls {@link spi::LoggerRepository::ensureIsConfigured ensureIsConfigured}
passing {@link DefaultConfigurator::configure} to ensure
Expand All @@ -176,7 +182,9 @@ class LOG4CXX_EXPORT LogManager
static LoggerPtr getLogger(const CFStringRef& name,
const spi::LoggerFactoryPtr& factory);
/**
Does the logger \c name exist in the hierarchy?
A pointer to the logger \c name instance if it exists in the hierarchy.
@returns A null pointer unless the \c name Logger already exists.
*/
static LoggerPtr exists(const CFStringRef& name);
#endif
Expand All @@ -185,7 +193,7 @@ class LOG4CXX_EXPORT LogManager
/**
Retrieve the \c name Logger instance from the
{@link spi::LoggerRepository LoggerRepository}
using LoggerFactory to create it if required.
using the default factory to create it if required.
Calls {@link spi::LoggerRepository::ensureIsConfigured ensureIsConfigured}
passing {@link DefaultConfigurator::configure} to ensure
Expand All @@ -205,7 +213,9 @@ class LOG4CXX_EXPORT LogManager
const spi::LoggerFactoryPtr& factory);

/**
Does the logger \c name exist in the hierarchy?
A pointer to the logger \c name instance if it exists in the hierarchy.
@returns A null pointer unless the \c name Logger already exists.
*/
static LoggerPtr existsLS(const LogString& name);

Expand Down

0 comments on commit 0e66618

Please sign in to comment.