Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

log4cpp::Priority Class Reference

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

#include <Priority.hh>

List of all members.

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. More...


Static Public Methods

const std::string& getPriorityName (int priority) throw ()
 Returns the name of the given priority value. More...


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  
INFO  
DEBUG  
NOTSET  


Member Function Documentation

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.


The documentation for this class was generated from the following file:
Generated at Mon Jun 11 01:25:24 2001 for log4cpp by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001