| 1319 | } |
| 1320 | |
| 1321 | void TOPPASScene::writeToLogFile_(const QString& text) |
| 1322 | { |
| 1323 | QFile logfile(out_dir_ + QDir::separator() + "TOPPAS.log"); |
| 1324 | if (!logfile.open(QIODevice::Append | QIODevice::Text)) |
| 1325 | { |
| 1326 | std::cerr << "Could not write to logfile '" << String(logfile.fileName()) << "'" << std::endl; |
| 1327 | return; |
| 1328 | } |
| 1329 | |
| 1330 | QTextStream ts(&logfile); |
| 1331 | ts << "\n" << text << "\n"; |
| 1332 | logfile.close(); |
| 1333 | } |
| 1334 | |
| 1335 | void TOPPASScene::logTOPPOutput(const QString& out) |
| 1336 | { |