Main Page | Data Structures | File List | Globals | Related Pages

priority.h File Reference

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

#include <log4c/defs.h>

Include dependency graph for priority.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Enumerations

enum  log4c_priority_level_t {
  LOG4C_PRIORITY_FATAL = 000,
  LOG4C_PRIORITY_ALERT = 100,
  LOG4C_PRIORITY_CRIT = 200,
  LOG4C_PRIORITY_ERROR = 300,
  LOG4C_PRIORITY_WARN = 400,
  LOG4C_PRIORITY_NOTICE = 500,
  LOG4C_PRIORITY_INFO = 600,
  LOG4C_PRIORITY_DEBUG = 700,
  LOG4C_PRIORITY_TRACE = 800,
  LOG4C_PRIORITY_NOTSET = 900,
  LOG4C_PRIORITY_UNKNOWN = 1000
}

Functions

const char * log4c_priority_to_string (int a_priority)
int log4c_priority_to_int (const char *a_priority_name)


Detailed Description

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


Enumeration Type Documentation

enum log4c_priority_level_t
 

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

Enumeration values:
LOG4C_PRIORITY_FATAL 
LOG4C_PRIORITY_ALERT 
LOG4C_PRIORITY_CRIT 
LOG4C_PRIORITY_ERROR 
LOG4C_PRIORITY_WARN 
LOG4C_PRIORITY_NOTICE 
LOG4C_PRIORITY_INFO 
LOG4C_PRIORITY_DEBUG 
LOG4C_PRIORITY_TRACE 
LOG4C_PRIORITY_NOTSET 
LOG4C_PRIORITY_UNKNOWN 


Function Documentation

int log4c_priority_to_int const char *  a_priority_name  ) 
 

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

const char* log4c_priority_to_string int  a_priority  ) 
 

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


Generated on Sat Dec 11 11:02:59 2004 for log4c by  doxygen 1.3.9.1