Log to file as dedicated server (do not use syslog any more).

This commit is contained in:
lotodore
2007-11-22 17:25:55 +00:00
parent c0bf559ca2
commit 65a3f969bf
4 changed files with 49 additions and 17 deletions
+2 -1
View File
@@ -73,6 +73,7 @@ main(int argc, char *argv[])
//create defaultconfig
ConfigFile *myConfig = new ConfigFile(argc, argv);
loghelper_init(myConfig->readConfigString("LogDir"));
// TODO: Hack
#ifndef _WIN32
@@ -103,7 +104,7 @@ main(int argc, char *argv[])
}
myServerGuiInterface->getSession().terminateNetworkServer();
LOG_MSG("Terminating PokerTH dedicated server.");
LOG_MSG("Terminating PokerTH dedicated server." << endl);
socket_cleanup();
return 0;
}