示例#1
0
文件: main.cpp 项目: saphina/iviLink
int main()
{
   Logger logger = Logger::getInstance(LOG4CPLUS_TEXT("samples.Applications.EchoServer"));
   PropertyConfigurator::doConfigure(LOG4CPLUS_TEXT("echoServerLog.properties"));

   LOG4CPLUS_INFO(logger, " begin Echo Client main()");

   EchoServer * server = new EchoServer();
   server->run();
   delete server;
   
   LOG4CPLUS_INFO(logger, "end Echo Client main()");

   return 0;
}
示例#2
0
int main(int argc, char** argv)
{
	EchoServer app;
	return app.run(argc, argv);
}