summaryrefslogtreecommitdiff
path: root/src/log.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-02-22 16:00:00 +0000
committerChristian Pointner <equinox@anytun.org>2009-02-22 16:00:00 +0000
commitbb33710e45c6e3b4f6594b8c35c79e17c6e5466a (patch)
tree7ca1400100c4848b519698e81f21c743f8a2275b /src/log.h
parentfixed default log level @ anytun-controld (diff)
remove useless log priorities CRIT,EMERG,ALERT
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h30
1 files changed, 6 insertions, 24 deletions
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 <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();