priority.h
Go to the documentation of this file.
/* $Id: priority.h,v 1.5 2006/10/01 18:28:55 rbyrne Exp $
*
* priority.h
*
* Copyright 2001-2003, Meiosys (www.meiosys.com). All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#ifndef log4c_priority_h
#define log4c_priority_h
#include <log4c/defs.h>
__LOG4C_BEGIN_DECLS
typedef enum { 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
} log4c_priority_level_t;
LOG4C_API const char* log4c_priority_to_string(int a_priority);
LOG4C_API int log4c_priority_to_int(const char* a_priority_name);
__LOG4C_END_DECLS
#endif
log4c_priority_level_t
log4c_priority_level_t
Definition priority.h:28
LOG4C_PRIORITY_FATAL
@ LOG4C_PRIORITY_FATAL
Definition priority.h:29
LOG4C_PRIORITY_UNKNOWN
@ LOG4C_PRIORITY_UNKNOWN
Definition priority.h:39
LOG4C_PRIORITY_INFO
@ LOG4C_PRIORITY_INFO
Definition priority.h:35
LOG4C_PRIORITY_WARN
@ LOG4C_PRIORITY_WARN
Definition priority.h:33
LOG4C_PRIORITY_NOTSET
@ LOG4C_PRIORITY_NOTSET
Definition priority.h:38
LOG4C_PRIORITY_ERROR
@ LOG4C_PRIORITY_ERROR
Definition priority.h:32
LOG4C_PRIORITY_DEBUG
@ LOG4C_PRIORITY_DEBUG
Definition priority.h:36
LOG4C_PRIORITY_CRIT
@ LOG4C_PRIORITY_CRIT
Definition priority.h:31
LOG4C_PRIORITY_NOTICE
@ LOG4C_PRIORITY_NOTICE
Definition priority.h:34
LOG4C_PRIORITY_TRACE
@ LOG4C_PRIORITY_TRACE
Definition priority.h:37
LOG4C_PRIORITY_ALERT
@ LOG4C_PRIORITY_ALERT
Definition priority.h:30
log4c_priority_to_int
int log4c_priority_to_int(const char *a_priority_name)
Definition priority.c:42
log4c_priority_to_string
const char * log4c_priority_to_string(int a_priority)
Definition priority.c:32