log4shib::Priority(3) | Library Functions Manual | log4shib::Priority(3) |
NAME¶
log4shib::Priority - The Priority class provides importance levels with which one can categorize log messages.
SYNOPSIS¶
#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 }
Predefined Levels of Priorities. typedef int Value
The type of Priority Values.
Static Public Member Functions¶
static const std::string & getPriorityName (int
priority) throw ()
Returns the name of the given priority value. static Value
getPriorityValue (const std::string &priorityName)
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 log4shib::Priority::Value¶
The type of Priority Values.
Member Enumeration Documentation¶
enum log4shib::Priority::PriorityLevel¶
Predefined Levels of Priorities. These correspond to the priority levels used by syslog(3).
Enumerator
Member Function Documentation¶
const std::string & log4shib::Priority::getPriorityName (int priority) [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.
Parameters
Returns
Priority::Value log4shib::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.
Parameters
Returns
Exceptions
Author¶
Generated automatically by Doxygen for log4shib from the source code.
Version 2.0.1 | log4shib |