X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Flogger.cxx;h=31f0a59c7d54c6473c847fa8eb0bd05ab7902f2c;hb=fce2a53fc7cf5fb8e392a5e0570ad81f24e3ab0c;hp=95e0a5dbe0bc950210c5559ad17611e7b9fbe5b3;hpb=14885374de79779e3f642f6ecb39d4723836166a;p=flightgear.git diff --git a/src/Main/logger.cxx b/src/Main/logger.cxx index 95e0a5dbe..31f0a59c7 100644 --- a/src/Main/logger.cxx +++ b/src/Main/logger.cxx @@ -38,7 +38,7 @@ FGLogger::init () if (logging == 0) return; - vector children = logging->getChildren("log"); + std::vector children = logging->getChildren("log"); for (unsigned int i = 0; i < children.size(); i++) { SGPropertyNode * child = children[i]; @@ -64,9 +64,9 @@ FGLogger::init () log.interval_ms = child->getLongValue("interval-ms"); log.last_time_ms = globals->get_sim_time_sec() * 1000; log.delimiter = delimiter.c_str()[0]; - log.output = new ofstream(filename.c_str()); + log.output = new std::ofstream(filename.c_str()); if (!log.output) { - SG_LOG(SG_INPUT, SG_ALERT, "Cannot write log to " << filename); + SG_LOG(SG_GENERAL, SG_ALERT, "Cannot write log to " << filename); continue; } @@ -93,7 +93,7 @@ FGLogger::init () fgGetNode(entry->getStringValue("property"), true); log.nodes.push_back(node); (*log.output) << log.delimiter - << entry->getStringValue("title", node->getPath()); + << entry->getStringValue("title", node->getPath().c_str()); } (*log.output) << endl; }