diff options
author | Christian Pointner <equinox@anytun.org> | 2009-02-22 03:53:14 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-02-22 03:53:14 +0000 |
commit | 2fbd48f9f927dbd93974e8e6d985815331a12b15 (patch) | |
tree | 1dfd1cd14f1ab125d0ec114fefb089fa763cb0ca /src/anytun.cpp | |
parent | added extended logging capability (diff) |
fixed build on Windows (after logging chances)
Diffstat (limited to 'src/anytun.cpp')
-rw-r--r-- | src/anytun.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/anytun.cpp b/src/anytun.cpp index d954eae..1fb1fd8 100644 --- a/src/anytun.cpp +++ b/src/anytun.cpp @@ -362,8 +362,16 @@ int main(int argc, char* argv[]) { try { +#ifndef _MSC_VER cLog.addTarget("syslog:7,anytun,daemon"); - cLog.msg(Log::PRIO_DEBUG) << "anytun started..."; +#else + #ifdef WIN_SERVICE + cLog.addTarget("eventlog:7,anytun"); + #else + cLog.addTarget("stdout:7"); + #endif +#endif + cLog.msg(Log::PRIO_NOTICE) << "anytun started..."; /// std::cout << "anytun - secure anycast tunneling protocol" << std::endl; bool result = gOpt.parse(argc, argv); |