#include <Priority.hh>
Public Types | |
enum | PriorityLevel { EMERG = 0, FATAL = 0, ALERT = 100, CRIT = 200, ERROR = 300, WARN = 400, NOTICE = 500, INFO = 600, DEBUG = 700, NOTSET = 800 } |
typedef int | Value |
Static Public Member Functions | |
static const std::string & | getPriorityName (int priority) throw () |
static Value | getPriorityValue (const std::string &priorityName) |
Static Public Attributes | |
static const int | MESSAGE_SIZE |
The Priority class provides importance levels with which one can categorize log messages.
Definition at line 62 of file Priority.hh.
typedef int Priority::Value |
The type of Priority Values
Definition at line 87 of file Priority.hh.
Predefined Levels of Priorities. These correspond to the priority levels used by syslog(3).
Definition at line 71 of file Priority.hh.
static const std::string& Priority::getPriorityName | ( | int | priority | ) | throw () [static] |
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.
priority | the numeric value of the priority. |
static Value Priority::getPriorityValue | ( | const std::string & | priorityName | ) | [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.
priorityName | the string containing the name of the priority |
GenICam::InvalidArgumentException | if the priorityName does not correspond with a known Priority name or a number |
const int Priority::MESSAGE_SIZE [static] |
Definition at line 65 of file Priority.hh.