From bb33710e45c6e3b4f6594b8c35c79e17c6e5466a Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 22 Feb 2009 16:00:00 +0000 Subject: remove useless log priorities CRIT,EMERG,ALERT --- src/log.h | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) (limited to 'src/log.h') diff --git a/src/log.h b/src/log.h index cd83e84..dcdedc4 100644 --- a/src/log.h +++ b/src/log.h @@ -36,11 +36,6 @@ #include #include "logTargets.h" - -#ifdef LOG_SYSLOG -#include -#endif - #include "threadUtils.hpp" class Log; @@ -64,25 +59,12 @@ private: class Log { public: -#ifdef LOG_SYSLOG - static const int PRIO_EMERG = LOG_EMERG; - static const int PRIO_ALERT = LOG_ALERT; - static const int PRIO_CRIT = LOG_CRIT; - static const int PRIO_ERR = LOG_ERR; - static const int PRIO_WARNING = LOG_WARNING; - static const int PRIO_NOTICE = LOG_NOTICE; - static const int PRIO_INFO = LOG_INFO; - static const int PRIO_DEBUG = LOG_DEBUG; -#else - static const int PRIO_EMERG = 0; - static const int PRIO_ALERT = 1; - static const int PRIO_CRIT = 2; - static const int PRIO_ERR = 3; - static const int PRIO_WARNING = 4; - static const int PRIO_NOTICE = 5; - static const int PRIO_INFO = 6; - static const int PRIO_DEBUG = 7; -#endif + static const int PRIO_ERROR = 1; + static const int PRIO_WARNING = 2; + static const int PRIO_NOTICE = 3; + static const int PRIO_INFO = 4; + static const int PRIO_DEBUG = 5; + static std::string prioToString(int prio); static Log& instance(); -- cgit v1.2.3