log4cplus_internal_CustomLogLevelManager(3)

log4cplus::internal::CustomLogLevelManager(3) log4cplus log4cplus::internal::CustomLogLevelManager(3)

NAME

log4cplus::internal::CustomLogLevelManager - Custom log level manager used by C API.

SYNOPSIS

#include <customloglevelmanager.h>

Public Member Functions


CustomLogLevelManager ()
bool add (LogLevel ll, tstring const &nm)
bool remove (LogLevel ll, tstring const &nm)

Protected Member Functions


tstring const & customToStringMethodWorker (LogLevel ll)
LogLevel customFromStringMethodWorker (const tstring &nm)

Static Protected Member Functions


static LOG4CPLUS_PRIVATE tstring const & customToStringMethod (LogLevel ll)
static LOG4CPLUS_PRIVATE LogLevel customFromStringMethod (const tstring &nm)

Protected Attributes


log4cplus::thread::Mutex mtx
bool pushed_methods
std::map< LogLevel, tstring > ll2nm
std::map< tstring, LogLevel > nm2ll

Detailed Description

Custom log level manager used by C API.

Definition at line 64 of file customloglevelmanager.h.

Constructor & Destructor Documentation

log4cplus::internal::CustomLogLevelManager::CustomLogLevelManager () [inline]

Definition at line 72 of file customloglevelmanager.h.

Member Function Documentation

bool log4cplus::internal::CustomLogLevelManager::add (LogLevel ll, tstring const & nm) [inline]

Definition at line 76 of file customloglevelmanager.h.

References customFromStringMethod(), customToStringMethod(), log4cplus::getLogLevelManager(), ll2nm, mtx, nm2ll, pushed_methods, log4cplus::LogLevelManager::pushFromStringMethod(), and log4cplus::LogLevelManager::pushToStringMethod().

static LOG4CPLUS_PRIVATE LogLevel log4cplus::internal::CustomLogLevelManager::customFromStringMethod (const tstring & nm) [static], [protected]

Referenced by add().

LogLevel log4cplus::internal::CustomLogLevelManager::customFromStringMethodWorker (const tstring & nm) [inline], [protected]

Definition at line 130 of file customloglevelmanager.h.

References mtx, nm2ll, and log4cplus::NOT_SET_LOG_LEVEL.

static LOG4CPLUS_PRIVATE tstring const & log4cplus::internal::CustomLogLevelManager::customToStringMethod (LogLevel ll) [static], [protected]

Referenced by add().

tstring const & log4cplus::internal::CustomLogLevelManager::customToStringMethodWorker (LogLevel ll) [inline], [protected]

Definition at line 120 of file customloglevelmanager.h.

References log4cplus::internal::empty_str, ll2nm, and mtx.

bool log4cplus::internal::CustomLogLevelManager::remove (LogLevel ll, tstring const & nm) [inline]

Definition at line 101 of file customloglevelmanager.h.

References ll2nm, mtx, and nm2ll.

Member Data Documentation

std::map<LogLevel,tstring> log4cplus::internal::CustomLogLevelManager::ll2nm [protected]

Definition at line 68 of file customloglevelmanager.h.

Referenced by add(), customToStringMethodWorker(), and remove().

log4cplus::thread::Mutex log4cplus::internal::CustomLogLevelManager::mtx [protected]

Definition at line 66 of file customloglevelmanager.h.

Referenced by add(), customFromStringMethodWorker(), customToStringMethodWorker(), and remove().

std::map<tstring,LogLevel> log4cplus::internal::CustomLogLevelManager::nm2ll [protected]

Definition at line 69 of file customloglevelmanager.h.

Referenced by add(), customFromStringMethodWorker(), and remove().

bool log4cplus::internal::CustomLogLevelManager::pushed_methods [protected]

Definition at line 67 of file customloglevelmanager.h.

Referenced by add().

Author

Generated automatically by Doxygen for log4cplus from the source code.

Mon Jun 5 2023 21:46:10 Version 2.0.7