summaryrefslogtreecommitdiff
path: root/src/anytun.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/anytun.cpp')
-rw-r--r--src/anytun.cpp10
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);