26 #ifndef LOG4CPLUS_LOGLEVEL_HEADER_
27 #define LOG4CPLUS_LOGLEVEL_HEADER_
31 #if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE)
173 struct LogLevelToStringMethodRec
175 LogLevelToStringMethodRec ();
181 typedef std::vector<LogLevelToStringMethodRec> LogLevelToStringMethodList;
182 LogLevelToStringMethodList toStringMethods;
184 typedef std::vector<StringToLogLevelMethod> StringToLogLevelMethodList;
185 StringToLogLevelMethodList fromStringMethods;
This class is used to "manage" LogLevel definitions.
void pushFromStringMethod(StringToLogLevelMethod newFromString)
When creating a "derived" LogLevel, a StringToLogLevelMethod should be defined and registered with th...
void pushToStringMethod(LogLevelToStringMethod newToString)
When creating a "derived" LogLevel, a LogLevelToStringMethod should be defined and registered with th...
LogLevel fromString(const log4cplus::tstring &arg) const
This method is called by all classes internally to log4cplus to convert a string into a LogLevel.
log4cplus::tstring const & toString(LogLevel ll) const
This method is called by all Layout classes to convert a LogLevel into a string.
log4cplus::tstring const &(* LogLevelToStringMethod)(LogLevel)
This method type defined the signature of methods that convert LogLevels into strings.
const LogLevel WARN_LOG_LEVEL
The WARN_LOG_LEVEL LogLevel designates potentially harmful situations.
std::basic_string< tchar > tstring
const LogLevel INFO_LOG_LEVEL
The INFO_LOG_LEVEL LogLevel designates informational messages that highlight the progress of the appl...
const LogLevel ERROR_LOG_LEVEL
The ERROR_LOG_LEVEL LogLevel designates error events that might still allow the application to contin...
const LogLevel TRACE_LOG_LEVEL
The TRACE_LOG_LEVEL LogLevel is used to "trace" entry and exiting of methods.
const LogLevel NOT_SET_LOG_LEVEL
The NOT_SET_LOG_LEVEL LogLevel is used to indicated that no particular LogLevel is desired and that t...
const LogLevel FATAL_LOG_LEVEL
The FATAL_LOG_LEVEL LogLevel designates very severe error events that will presumably lead the applic...
LogLevel(* StringToLogLevelMethod)(const log4cplus::tstring &)
This method type defined the signature of methods that convert strings into LogLevels.
LOG4CPLUS_EXPORT LogLevelManager & getLogLevelManager()
Returns the singleton LogLevelManager.
const LogLevel DEBUG_LOG_LEVEL
The DEBUG_LOG_LEVEL LogLevel designates fine-grained informational events that are most useful to deb...
const LogLevel OFF_LOG_LEVEL
The OFF_LOG_LEVEL LogLevel is used during configuration to turn off logging.
int LogLevel
Defines the minimum set of priorities recognized by the system, that is FATAL_LOG_LEVEL,...
const LogLevel ALL_LOG_LEVEL
The ALL_LOG_LEVEL LogLevel is used during configuration to turn on all logging.