Public Member Functions | |
log4cplus::tstring | toString (LogLevel ll) const |
This method is called by all Layout classes to convert a LogLevel into a string. | |
LogLevel | fromString (const log4cplus::tstring &s) const |
This method is called by all classes internally to log4cplus to convert a string into a LogLevel. | |
void | pushToStringMethod (LogLevelToStringMethod newToString) |
When creating a "derived" LogLevel, a LogLevelToStringMethod should be defined and registered with the LogLevelManager by calling this method. | |
void | pushFromStringMethod (StringToLogLevelMethod newFromString) |
When creating a "derived" LogLevel, a StringToLogLevelMethod should be defined and registered with the LogLevelManager by calling this method. | |
Private Member Functions | |
LogLevelManager (const LogLevelManager &) | |
LogLevelManager & | operator= (const LogLevelManager &) |
Private Attributes | |
void * | toStringMethods |
void * | fromStringMethods |
This class is also how "derived" LogLevels are created. Here are the steps to creating a "derived" LogLevel:
Definition at line 124 of file loglevel.h.
log4cplus::tstring log4cplus::LogLevelManager::toString | ( | LogLevel | ll | ) | const |
This method is called by all Layout classes to convert a LogLevel into a string.
Note: It traverses the list of LogLevelToStringMethod
to do this, so all "derived" LogLevels are recognized as well.
LogLevel log4cplus::LogLevelManager::fromString | ( | const log4cplus::tstring & | s | ) | const |
This method is called by all classes internally to log4cplus to convert a string into a LogLevel.
Note: It traverses the list of StringToLogLevelMethod
to do this, so all "derived" LogLevels are recognized as well.
void log4cplus::LogLevelManager::pushToStringMethod | ( | LogLevelToStringMethod | newToString | ) |
When creating a "derived" LogLevel, a LogLevelToStringMethod
should be defined and registered with the LogLevelManager by calling this method.
void log4cplus::LogLevelManager::pushFromStringMethod | ( | StringToLogLevelMethod | newFromString | ) |
When creating a "derived" LogLevel, a StringToLogLevelMethod
should be defined and registered with the LogLevelManager by calling this method.