log4cplus  2.1.0
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
log4cplus::internal::CustomLogLevelManager Class Reference

Custom log level manager used by C API. More...

#include <customloglevelmanager.h>

Collaboration diagram for log4cplus::internal::CustomLogLevelManager:
[legend]

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, tstringll2nm
 
std::map< tstring, LogLevelnm2ll
 

Detailed Description

Custom log level manager used by C API.

Definition at line 64 of file customloglevelmanager.h.

Constructor & Destructor Documentation

◆ CustomLogLevelManager()

log4cplus::internal::CustomLogLevelManager::CustomLogLevelManager ( )
inline

Definition at line 72 of file customloglevelmanager.h.

Member Function Documentation

◆ add()

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

◆ customFromStringMethod()

static LOG4CPLUS_PRIVATE LogLevel log4cplus::internal::CustomLogLevelManager::customFromStringMethod ( const tstring nm)
staticprotected

Referenced by add().

◆ customFromStringMethodWorker()

LogLevel log4cplus::internal::CustomLogLevelManager::customFromStringMethodWorker ( const tstring nm)
inlineprotected

Definition at line 130 of file customloglevelmanager.h.

References mtx, nm2ll, and log4cplus::NOT_SET_LOG_LEVEL.

◆ customToStringMethod()

static LOG4CPLUS_PRIVATE tstring const& log4cplus::internal::CustomLogLevelManager::customToStringMethod ( LogLevel  ll)
staticprotected

Referenced by add().

◆ customToStringMethodWorker()

tstring const& log4cplus::internal::CustomLogLevelManager::customToStringMethodWorker ( LogLevel  ll)
inlineprotected

Definition at line 120 of file customloglevelmanager.h.

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

◆ remove()

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

◆ ll2nm

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

Definition at line 68 of file customloglevelmanager.h.

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

◆ mtx

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

◆ nm2ll

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

Definition at line 69 of file customloglevelmanager.h.

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

◆ pushed_methods

bool log4cplus::internal::CustomLogLevelManager::pushed_methods
protected

Definition at line 67 of file customloglevelmanager.h.

Referenced by add().


The documentation for this class was generated from the following file: