Exemple #1
0
void ServerModule::Init(const string& conf)
{
    
    try
    {
        PropertyConfigurator::configure("servermodule/ServerModulelog.conf");
    }
    catch(std::exception& e)
    {
        LOG4CXX_FATAL(logger, "exception:%s "<< e.what());
        return;
    }
    logger = log4cxx::LoggerPtr(log4cxx::Logger::getLogger("ServerModule"));


    LOG4CXX_DEBUG(logger, "server module initi, conf"<<conf);
    
    pool.RegistersJob(std::tr1::bind(&ServerModule::myjob, this, std::tr1::placeholders::_1));


}