
log4cpp:Priority (3)
NAME
log4cpp::Priority - The Priority class provides importance levels with
which one can categorize log messages.
SYNOPSIS
#include <Priority.hh>
Public Types
typedef int Value
The type of Priority Values.
enum PriorityLevel { EMERG = 0, FATAL = 0, ALERT = 100, CRIT = 200,
ERROR = 300, WARN = 400, NOTICE = 500, INFO = 600, DEBUG =
700, NOTSET = 800 }
Predefined Levels of Priorities.
Static Public Methods
const std::string & getPriorityName (int priority) throw ()
Returns the name of the given priority value.
Value getPriorityValue (const std::string &priorityName) throw
(std::invalid_argument)
Returns the value of the given priority name.
DETAILED DESCRIPTION
The Priority class provides importance levels with which one can
categorize log messages.
MEMBER TYPEDEF DOCUMENTATION
typedef int log4cpp::Priority::Value
The type of Priority Values.
MEMBER ENUMERATION DOCUMENTATION
enum log4cpp::Priority::PriorityLevel
Predefined Levels of Priorities.
These correspond to the priority levels used by syslog(3).
Enumeration values:
EMERG
FATAL
ALERT
CRIT
ERROR
WARN
NOTICE
Returns the name of the given priority value.
Currently, if the value is not one of the PriorityLevel values, the
method returns the name of the largest priority smaller the given
value.
Parameters:
priority
the numeric value of the priority.
Returns:
a string representing the name of the priority.
Priority::Value log4cpp::Priority::getPriorityValue (const std::string &
priorityName) throw (std::invalid_argument) [static]
Returns the value of the given priority name.
This can be either one of EMERG ... NOTSET or a decimal string
representation of the value, e.g. '700' for DEBUG.
Parameters:
priorityName
the string containing the the of the priority
Returns:
the value corresponding with the priority name
Exceptions:
std::invalid_argument
if the priorityName does not correspond with a known Priority
name or a number
AUTHOR
Generated automatically by Doxygen for log4cpp from the source code.
log4cpp 19 Aug 2003 log4cpp::Priority(3)