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; }
int main(int argc, char** argv) { EchoServer app; return app.run(argc, argv); }