98 return _config.get<std::string>(ptree::path_type(name,
'/'));
100 catch (boost::property_tree::ptree_bad_path)
102 TC_LOG_WARN(
"server.loading",
"Missing name %s in config file %s, add \"%s = %s\" to this file",
103 name.c_str(), _filename.c_str(), name.c_str(), def.c_str());
105 catch (boost::property_tree::ptree_bad_data)
107 TC_LOG_ERROR(
"server.loading",
"Bad value defined for name %s in config file %s, going to use %s instead",
108 name.c_str(), _filename.c_str(), def.c_str());
#define TC_LOG_WARN(filterType__,...)
Definition: Log.h:204
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:207