00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef _LOG4CPP_PRIORITY_HH
00011 #define _LOG4CPP_PRIORITY_HH
00012
00013 #include <string>
00014
00015
00016
00017
00018 #ifdef ERROR
00019 #ifdef LOG4CPP_FIX_ERROR_COLLISION
00020
00021 namespace log4cpp {
00022 static const int _tmpERRORValue = ERROR;
00023 }
00024
00025 #undef ERROR
00026 static const int ERROR = log4cpp::_tmpERRORValue;
00027 #define ERROR ERROR
00028
00029 #else
00030 #error Naming collision for 'ERROR' detected. Please read the FAQ for a \
00031 workaround.
00032 #endif // LOG4CPP_FIX_ERROR_COLLISION
00033
00034 #endif // ERROR
00035
00036 namespace log4cpp {
00037
00042 class Priority {
00043 public:
00044
00049 typedef enum {EMERG = 0,
00050 FATAL = 0,
00051 ALERT = 100,
00052 CRIT = 200,
00053 ERROR = 300,
00054 WARN = 400,
00055 NOTICE = 500,
00056 INFO = 600,
00057 DEBUG = 700,
00058 NOTSET = 800
00059 } PriorityLevel;
00060
00064 typedef int Value;
00065
00074 static const std::string& getPriorityName(int priority) throw();
00075 };
00076 }
00077
00078 #endif // _LOG4CPP_PRIORITY_HH