summaryrefslogtreecommitdiff
path: root/src/logTargets.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-02-22 03:53:14 +0000
committerChristian Pointner <equinox@anytun.org>2009-02-22 03:53:14 +0000
commit2fbd48f9f927dbd93974e8e6d985815331a12b15 (patch)
tree1dfd1cd14f1ab125d0ec114fefb089fa763cb0ca /src/logTargets.h
parentadded extended logging capability (diff)
fixed build on Windows (after logging chances)
Diffstat (limited to 'src/logTargets.h')
-rw-r--r--src/logTargets.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/logTargets.h b/src/logTargets.h
index 4f249d4..a7e9b60 100644
--- a/src/logTargets.h
+++ b/src/logTargets.h
@@ -43,6 +43,8 @@
#include <fstream>
#endif
+#include "datatypes.h"
+
class LogTarget
{
public:
@@ -178,6 +180,8 @@ private:
class LogTargetWinEventlog : public LogTarget
{
public:
+ static WORD prioToEventLogType(int prio);
+
LogTargetWinEventlog(int prio, std::string conf);
~LogTargetWinEventlog();
@@ -187,11 +191,9 @@ public:
static bool duplicateAllowed() { return false; };
LogTargetWinEventlog& setLogName(std::string l);
- std::string getLogName() const { return logname; }
+ std::string getLogName() const { return logname; };
private:
- static WORD prioToEventLogType(int prio);
-
std::string logname;
HANDLE h_event_source;
};