diff options
author | Christian Pointner <equinox@anytun.org> | 2009-02-22 16:00:00 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-02-22 16:00:00 +0000 |
commit | bb33710e45c6e3b4f6594b8c35c79e17c6e5466a (patch) | |
tree | 7ca1400100c4848b519698e81f21c743f8a2275b /src/log.h | |
parent | fixed default log level @ anytun-controld (diff) |
remove useless log priorities CRIT,EMERG,ALERT
Diffstat (limited to 'src/log.h')
-rw-r--r-- | src/log.h | 30 |
1 files changed, 6 insertions, 24 deletions
@@ -36,11 +36,6 @@ #include <sstream> #include "logTargets.h" - -#ifdef LOG_SYSLOG -#include <syslog.h> -#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(); |