diff options
author | Othmar Gsenger <otti@anytun.org> | 2008-11-28 18:45:57 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2008-11-28 18:45:57 +0000 |
commit | ac2147483cfcbb6f01123d65e67b7bb363bddc8f (patch) | |
tree | d7812a08b15dbc54df6f97b7b64ae913972f309b /src/log.h | |
parent | some more type cleanups and missig NOCRYPT defines (diff) |
added some windows support (not working now)
try to build with following Options:
NOCRYPT;NODAEMON;NOEXEC;NOPACKED;NOSYSLOG;NOROUTING;NOSIGNALCONTROLLER
Diffstat (limited to 'src/log.h')
-rw-r--r-- | src/log.h | 33 |
1 files changed, 33 insertions, 0 deletions
@@ -34,7 +34,9 @@ #include <string> #include <sstream> +#ifndef NOSYSLOG #include <syslog.h> +#endif #include "threadUtils.hpp" @@ -59,6 +61,7 @@ private: class Log : public std::ostringstream { public: +#ifndef NOSYSLOG static const int FAC_USER = LOG_USER; static const int FAC_MAIL = LOG_MAIL; static const int FAC_DAEMON = LOG_DAEMON; @@ -87,6 +90,36 @@ public: 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 FAC_USER = 0; + static const int FAC_MAIL = 0; + static const int FAC_DAEMON = 0; + static const int FAC_AUTH = 0; + static const int FAC_SYSLOG = 0; + static const int FAC_LPR = 0; + static const int FAC_NEWS = 0; + static const int FAC_UUCP = 0; + static const int FAC_CRON = 0; + static const int FAC_AUTHPRIV = 0; + static const int FAC_FTP = 0; + static const int FAC_LOCAL0 = 0; + static const int FAC_LOCAL1 = 0; + static const int FAC_LOCAL2 = 0; + static const int FAC_LOCAL3 = 0; + static const int FAC_LOCAL4 = 0; + static const int FAC_LOCAL5 = 0; + static const int FAC_LOCAL6 = 0; + static const int FAC_LOCAL7 = 0; + + static const int PRIO_EMERG = 0; + static const int PRIO_ALERT = 0; + static const int PRIO_CRIT = 0; + static const int PRIO_ERR = 0; + static const int PRIO_WARNING = 0; + static const int PRIO_NOTICE = 0; + static const int PRIO_INFO = 0; + static const int PRIO_DEBUG = 0; +#endif static Log& instance(); |