log4cpp::Priority Class Reference

#include <Priority.hh>

List of all members.

Public Types

enum  PriorityLevel {
  EMERG = 0, FATAL = 0, ALERT = 100, CRIT = 200,
  ERROR = 300, WARN = 400, NOTICE = 500, INFO = 600,
  DEBUG = 700, NOTSET = 800, EMERG = 0, FATAL = 0,
  ALERT = 100, CRIT = 200, ERROR = 300, WARN = 400,
  NOTICE = 500, INFO = 600, DEBUG = 700, NOTSET = 800
}
enum  PriorityLevel {
  EMERG = 0, FATAL = 0, ALERT = 100, CRIT = 200,
  ERROR = 300, WARN = 400, NOTICE = 500, INFO = 600,
  DEBUG = 700, NOTSET = 800, EMERG = 0, FATAL = 0,
  ALERT = 100, CRIT = 200, ERROR = 300, WARN = 400,
  NOTICE = 500, INFO = 600, DEBUG = 700, NOTSET = 800
}
typedef int Value
typedef int Value

Static Public Member Functions

static const std::string & getPriorityName (int priority) throw ()
static const std::string & getPriorityName (int priority) throw ()
static Value getPriorityValue (const std::string &priorityName) throw (std::invalid_argument)
static Value getPriorityValue (const std::string &priorityName) throw (std::invalid_argument)

Static Public Attributes

static const int MESSAGE_SIZE = 8

Detailed Description

The Priority class provides importance levels with which one can categorize log messages.

Definition at line 61 of file include/log4cpp/Priority.hh.


Member Typedef Documentation

The type of Priority Values

Definition at line 85 of file install/include/log4cpp/Priority.hh.

The type of Priority Values

Definition at line 85 of file include/log4cpp/Priority.hh.


Member Enumeration Documentation

Predefined Levels of Priorities. These correspond to the priority levels used by syslog(3).

Enumerator:
EMERG 
FATAL 
ALERT 
CRIT 
ERROR 
WARN 
NOTICE 
INFO 
DEBUG 
NOTSET 
EMERG 
FATAL 
ALERT 
CRIT 
ERROR 
WARN 
NOTICE 
INFO 
DEBUG 
NOTSET 

Definition at line 70 of file install/include/log4cpp/Priority.hh.

Predefined Levels of Priorities. These correspond to the priority levels used by syslog(3).

Enumerator:
EMERG 
FATAL 
ALERT 
CRIT 
ERROR 
WARN 
NOTICE 
INFO 
DEBUG 
NOTSET 
EMERG 
FATAL 
ALERT 
CRIT 
ERROR 
WARN 
NOTICE 
INFO 
DEBUG 
NOTSET 

Definition at line 70 of file include/log4cpp/Priority.hh.


Member Function Documentation

static const std::string& log4cpp::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.

Parameters:
priority the numeric value of the priority.
Returns:
a string representing the name of the priority.
const std::string & log4cpp::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.

Parameters:
priority the numeric value of the priority.
Returns:
a string representing the name of the priority.

Definition at line 34 of file Priority.cpp.

static 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
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

Definition at line 41 of file Priority.cpp.


Member Data Documentation

const int log4cpp::Priority::MESSAGE_SIZE = 8 [static]

Definition at line 64 of file include/log4cpp/Priority.hh.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


log4cpp
Author(s): Stephen Roderick
autogenerated on Fri Jan 11 09:51:55 2013