void jassert_internal::set_log_file ( const jalib::string& path ) { theLogFilePath() = path; if ( theLogFileFd != -1 ) jalib::close ( theLogFileFd ); theLogFileFd = -1; if ( path.length() > 0 ) { theLogFileFd = _open_log_safe ( path, jalib::logFd ); if ( theLogFileFd == -1 ) theLogFileFd = _open_log_safe ( path + "_2", jalib::logFd ); if ( theLogFileFd == -1 ) theLogFileFd = _open_log_safe ( path + "_3", jalib::logFd ); if ( theLogFileFd == -1 ) theLogFileFd = _open_log_safe ( path + "_4", jalib::logFd ); if ( theLogFileFd == -1 ) theLogFileFd = _open_log_safe ( path + "_5", jalib::logFd ); } }
void jassert_internal::set_log_file(const jalib::string& path, const jalib::string _tmpDir, const jalib::string& _uniquePidStr) { tmpDir() = _tmpDir; uniquePidStr() = _uniquePidStr; theLogFilePath() = path; if ( theLogFileFd != -1 ) jalib::close ( theLogFileFd ); theLogFileFd = -1; if ( path.length() > 0 ) { theLogFileFd = _open_log_safe ( path, jalib::logFd() ); if ( theLogFileFd == -1 ) theLogFileFd = _open_log_safe ( path + "_2", jalib::logFd() ); if ( theLogFileFd == -1 ) theLogFileFd = _open_log_safe ( path + "_3", jalib::logFd() ); if ( theLogFileFd == -1 ) theLogFileFd = _open_log_safe ( path + "_4", jalib::logFd() ); if ( theLogFileFd == -1 ) theLogFileFd = _open_log_safe ( path + "_5", jalib::logFd() ); } }