//Set the default values void CLogger::initFromConfig() { CConfig config; std::wstring wcsLogDir = config.GetString(CConfig::EIDMW_CONFIG_PARAM_LOGGING_DIRNAME); std::wstring wcsPrefix = config.GetString(CConfig::EIDMW_CONFIG_PARAM_LOGGING_PREFIX); long lFileNbr = config.GetLong(CConfig::EIDMW_CONFIG_PARAM_LOGGING_FILENUMBER); long lFileSize = config.GetLong(CConfig::EIDMW_CONFIG_PARAM_LOGGING_FILESIZE); std::wstring wcsMaxLevel = config.GetString(CConfig::EIDMW_CONFIG_PARAM_LOGGING_LEVEL); tLOG_Level maxLevel = MapLevel(wcsMaxLevel.c_str()); long lGroup = config.GetLong(CConfig::EIDMW_CONFIG_PARAM_LOGGING_GROUP); init(wcsLogDir.c_str(), wcsPrefix.c_str(), lFileSize, lFileNbr, maxLevel, (lGroup?true:false)); }